From 3035139e5ed8a9b702ff03647bb1c26de91c975e Mon Sep 17 00:00:00 2001 From: Luke Edwards Date: Tue, 15 Sep 2020 12:15:48 -0700 Subject: [PATCH] chore: add `Object.create` test; - Closes #23 - Closed by d8720a3 --- test/suites/object.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test/suites/object.js b/test/suites/object.js index 43ddede..102a781 100644 --- a/test/suites/object.js +++ b/test/suites/object.js @@ -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(); }