ts-prime
Version:
A utility library for JavaScript and Typescript.
13 lines (12 loc) • 413 B
JavaScript
import { sort } from './sort';
import { pipe } from './pipe';
describe('data_first', function () {
test('sort', function () {
expect(sort([4, 2, 7, 5], function (a, b) { return a - b; })).toEqual([2, 4, 5, 7]);
});
});
describe('data_last', function () {
test('sort', function () {
expect(pipe([4, 2, 7, 5], sort(function (a, b) { return a - b; }))).toEqual([2, 4, 5, 7]);
});
});