aboutsummaryrefslogtreecommitdiff
path: root/node_modules/es5-ext/test/object/assign/shim.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/es5-ext/test/object/assign/shim.js')
-rw-r--r--node_modules/es5-ext/test/object/assign/shim.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/node_modules/es5-ext/test/object/assign/shim.js b/node_modules/es5-ext/test/object/assign/shim.js
new file mode 100644
index 00000000..36074907
--- /dev/null
+++ b/node_modules/es5-ext/test/object/assign/shim.js
@@ -0,0 +1,11 @@
+"use strict";
+
+module.exports = function (t, a) {
+ var o1 = { a: 1, b: 2 }
+ , o2 = { b: 3, c: 4 };
+
+ a(t(o1, o2), o1, "Returns self");
+ a.deep(o1, { a: 1, b: 3, c: 4 }, "Single: content");
+
+ a.deep(t({}, o1, o2), { a: 1, b: 3, c: 4 }, "Multi argument");
+};