Skip to content

Instantly share code, notes, and snippets.

@fabiante
Created June 7, 2018 13:40
Show Gist options
  • Save fabiante/a0bbe4e13350d222a8da0a09daf922b2 to your computer and use it in GitHub Desktop.
Save fabiante/a0bbe4e13350d222a8da0a09daf922b2 to your computer and use it in GitHub Desktop.
chai assert missing function deepStrictEqual in DefinitelyTyped
const assert = require("chai").assert;
console.log (typeof assert);
console.log (Object.keys(assert).indexOf("deepStrictEqual"));
console.log (typeof (assert.deepStrictEqual));
assert.deepStrictEqual(2, 2);
assert.deepStrictEqual({ a: 2, b: { c: 4}}, { a: 2, b: { c: 4}});
assert.throws(() => assert.deepStrictEqual({ a: 2, b: { c: 4}}, { a: 2, b: { c: 6}}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment