Skip to content
This repository has been archived by the owner on Jan 23, 2021. It is now read-only.

Commit

Permalink
fix Object.create(null) target test, because ava switched from asse…
Browse files Browse the repository at this point in the history
…rt.deepEqual to assert.deepStrictEqual

see avajs/ava#68
  • Loading branch information
schnittstabil committed Nov 2, 2015
1 parent efa61ab commit e252fa2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,12 @@ test('support `Object.create(null)` objects', t => {
});

test('support `Object.create(null)` targets', t => {
var obj = Object.create(null);
obj.foo = true;
t.same(fn(obj, {bar: false}), {foo: true, bar: false});
var target = Object.create(null);
var expected = Object.create(null);
target.foo = true;
expected.foo = true;
expected.bar = false;
t.same(fn(target, {bar: false}), expected);
t.end();
});

Expand Down

0 comments on commit e252fa2

Please sign in to comment.