]> gerrit.simantics Code Review - simantics/district.git/blob - shim.js
9afe5f658c45b74b6122f34781d7db27718067bd
[simantics/district.git] / shim.js
1 'use strict';
2
3 module.exports = function (t, a) {
4         var o1 = { a: 1, b: 2 }
5           , o2 = { b: 3, c: 4 };
6
7         a(t(o1, o2), o1, "Returns self");
8         a.deep(o1, { a: 1, b: 3, c: 4 }, "Single: content");
9
10         a.deep(t({}, o1, o2), { a: 1, b: 3, c: 4 }, "Multi argument");
11 };