UNPKG

decova-dotnet

Version:

This package provides fundumentals that a .net developer may miss while working with Typescript, whether they are missing functinalities or funcionalities provided in a non-elegant design in javascript. Bad naming, bad design of optional parameters, non-c

19 lines 704 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const chai_1 = require("chai"); require("../src/Array/Array.impl"); describe('Testing Array', () => { it('has "xUnion" method that should work correctly', () => { const arr1 = [1, 3, 5, 7, 9]; const arr2 = [2, 4, 6, 8, 10]; arr2.xUnion(arr1); console.log(arr1.xUnion(arr2)); }); it('has xEnsureItem() adds item when it does not exit', () => { const arr1 = [1, 3, 5, 7, 9]; const origCount = arr1.length; arr1.xEnsureItem(11); (0, chai_1.expect)(arr1.length).equals(origCount + 1); }); }); //# sourceMappingURL=Array.x.spec.js.map