-
Behrisch, M. (Michael) authored
Several (potentially even external) libraries might want to use our mock data and some utils. I pulled them out into a lib with a package.json
Behrisch, M. (Michael) authoredSeveral (potentially even external) libraries might want to use our mock data and some utils. I pulled them out into a lib with a package.json
test.js 406 B
/**
* Helpers Unit Tests
* ===================
*/
var assert = require('assert'),
lib = require('./');
describe('#.extend', function() {
it('should correctly extend the given array.', function() {
var A = [1, 2, 3],
B = [4, 5, 6];
lib.extend(A, B);
assert.strictEqual(A.length, 6);
assert.strictEqual(B.length, 3);
assert.deepEqual(A, [1, 2, 3, 4, 5, 6]);
});
});