ts-prime
Version:
A utility library for JavaScript and Typescript.
15 lines (14 loc) • 409 B
JavaScript
import { reverse } from './reverse';
import { pipe } from './pipe';
describe('data first', function () {
test('reverse', function () {
var actual = reverse([1, 2, 3]);
expect(actual).toEqual([3, 2, 1]);
});
});
describe('data last', function () {
test('reverse', function () {
var actual = pipe([1, 2, 3], reverse());
expect(actual).toEqual([3, 2, 1]);
});
});