UNPKG

compound-ex4

Version:

Compound-ex4 - MVC framework for NodeJS (ExpressJs 4 version), fork compoundjs(https://github.com/1602/compound)

44 lines (40 loc) 877 B
var tap = require("../") , test = tap.test test("strictDeepEquals shouldn't care about key order", function (t) { t.strictDeepEqual({ a : 1, b : 2 }, { b : 2, a : 1 }) t.end() }) test("strictDeepEquals shouldn't care about key order recursively", function (t) { t.strictDeepEqual( { x : { a : 1, b : 2 }, y : { c : 3, d : 4 } }, { y : { d : 4, c : 3 }, x : { b : 2, a : 1 } } ) t.end() }) test("strictDeepEquals shoudn't care about key order (but still might)", function (t) { t.strictDeepEqual( [ { foo: { z: 100 , y: 200 , x: 300 } } , "bar" , 11 , { baz: { d : 4 , a: 1 , b: 2 , c: 3 } } ] , [ { foo : { z: 100 , y: 200 , x: 300 } } , "bar" , 11 , { baz: { a: 1 , b: 2 , c: 3 , d: 4 } } ] ) t.end() });