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:
- It must have at most 7 elements
- It must have the number 1 and 2 as any of it’s elements
- 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.