How to create test using Jasmine framework?

Can someone help me please. How can I create a single test using Jasmine framework to test global array called “numArray”(e.g. let numArray=[6,1,8,3,12]) with the following:

  1. It must have at most 7 elements
  2. It must have the number 1 and 2 as any of it’s elements
  3. The total of all numbers in the array must be 30

Note: I can’t access individual elements to perform test, (e.g. numArray[3]), sample data may be any length.

Thank you in advance.