UNPKG

ts-prime

Version:

A utility library for JavaScript and Typescript.

16 lines (15 loc) 439 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var mapRecord_1 = require("./mapRecord"); describe('data first', function () { test('should merge', function () { expect(mapRecord_1.mapRecord({ a: 1, b: 2, c: 3 }, function (_a) { var k = _a[0], v = _a[1]; return [k, v * 2]; })).toEqual({ a: 2, b: 4, c: 6, }); }); });