UNPKG

ts-prime

Version:

A utility library for JavaScript and Typescript.

17 lines (16 loc) 557 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var omit_1 = require("./omit"); var pipe_1 = require("./pipe"); describe('data first', function () { test('omit', function () { var result = omit_1.omit({ a: 1, b: 2, c: 3, d: 4 }, ['a', 'd']); expect(result).toEqual({ b: 2, c: 3 }); }); }); describe('data last', function () { test('omit', function () { var result = pipe_1.pipe({ a: 1, b: 2, c: 3, d: 4 }, omit_1.omit(['a', 'd'])); expect(result).toEqual({ b: 2, c: 3 }); }); });