3 var create = Object.create, defineProperty = Object.defineProperty;
5 module.exports = function (t, a) {
6 var x = { foo: 'raz', bar: 'dwa' }, y;
8 a.not(y, x, "Returns copy");
11 x = { raz: 'one', dwa: 'two' };
12 defineProperty(x, 'get', {
15 get: function () { return this.dwa; }
26 a.deep(t(x), { raz: 'one', dwa: 'two!', trzy: 'three!', cztery: 'four',
27 piec: 'five', szesc: 'six', get: 'two!' }, "Deep object");
29 a.deep(t({ marko: 'raz', raz: 'foo' }, x, { szesc: 'elo', siedem: 'bibg' }),
30 { marko: 'raz', raz: 'one', dwa: 'two!', trzy: 'three!', cztery: 'four',
31 piec: 'five', szesc: 'elo', siedem: 'bibg', get: 'two!' }, "Multiple options");