Skip to content

Commit

Permalink
chore: add Object.create test;
Browse files Browse the repository at this point in the history
- Closes #23
- Closed by d8720a3
  • Loading branch information
lukeed committed Sep 15, 2020
1 parent 75a04f4 commit 3035139
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/suites/object.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,18 @@ export default function (klona) {
assert.equal(input.bar.c[0].hello, 1);
});

Objects('Object.create', () => {
const input = Object.create({
method() {
return 'foo';
}
});

const output = klona(input);

assert.equal(input.method(), 'foo');
assert.equal(output.method(), 'foo');
});

Objects.run();
}

0 comments on commit 3035139

Please sign in to comment.