Prettier fixes

This commit is contained in:
Behind The Math
2019-03-03 01:37:45 -05:00
parent 3c1a4b2e18
commit c13149626b
32 changed files with 1318 additions and 903 deletions

View File

@@ -1,17 +1,21 @@
var tape = require("tape")
var tape = require("tape");
var clone = require("../../../lib/util/clone")
var clone = require("../../../lib/util/clone");
tape("test clone method", function(t) {
var obj = {one: 1, two: 2}
var cloned = clone(obj)
var obj = { one: 1, two: 2 };
var cloned = clone(obj);
t.notEqual(obj, cloned, "cloned object isn't the original object")
t.notEqual(obj, cloned, "cloned object isn't the original object");
t.same(obj, cloned, "cloned object has the same values as original object")
t.same(obj, cloned, "cloned object has the same values as original object");
cloned.three = 3
t.notSame(obj, cloned, "modified cloned object doesn't have the same values as original object")
cloned.three = 3;
t.notSame(
obj,
cloned,
"modified cloned object doesn't have the same values as original object"
);
t.end()
})
t.end();
});