Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 | import { expect } from 'chai'; import getMinMax from './getMinMax'; describe('#getMinMax', () => { it('should return the right min and max values', () => { // @ts-ignore const result = getMinMax([7, 3, 9, 6, 8, 1, 4, 5, 2]); expect(result.min).to.be.equal(1); expect(result.max).to.be.equal(9); }); }); |