(array)
| 2925 | } |
| 2926 | |
| 2927 | function assertAscending(array) { |
| 2928 | for (var i = 1; i < array.length; i++) { |
| 2929 | if (array[i] < array[i - 1]) { |
| 2930 | // we already know this expect will fail, |
| 2931 | // just want to format the message nicely and then |
| 2932 | // quit so we don't get a million messages |
| 2933 | expect(array[i]).not.toBeLessThan(array[i - 1]); |
| 2934 | break; |
| 2935 | } |
| 2936 | } |
| 2937 | } |
| 2938 | |
| 2939 | function assertDescending(array) { |
| 2940 | for (var i = 1; i < array.length; i++) { |
no outgoing calls
no test coverage detected
searching dependent graphs…