ts-prime
Version:
A utility library for JavaScript and Typescript.
20 lines (19 loc) • 536 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var intersection_1 = require("./intersection");
describe('data_first', function () {
test('intersection', function () {
expect(intersection_1.intersection([1, 2, 3], [2, 3, 5])).toEqual([
2,
3,
]);
});
});
describe('data_last', function () {
test('intersection', function () {
expect(intersection_1.intersection([2, 3, 5])([1, 2, 3])).toEqual([
2,
3,
]);
});
});