dotfiles/.vscode/extensions/saviorisdead.RustyCode-0.18.0/node_modules/qs/test/utils.js

29 lines
507 B
JavaScript
Raw Normal View History

2016-09-11 09:29:13 +01:00
// Load modules
var Code = require('code');
var Lab = require('lab');
var Utils = require('../lib/utils');
// Declare internals
var internals = {};
// Test shortcuts
var lab = exports.lab = Lab.script();
var expect = Code.expect;
var describe = lab.experiment;
var it = lab.test;
describe('merge()', function () {
it('can merge two objects with the same key', function (done) {
expect(Utils.merge({ a: 'b' }, { a: 'c' })).to.deep.equal({ a: ['b', 'c'] });
done();
});
});