UNPKG

compound-ex4

Version:

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

18 lines (13 loc) 360 B
var difflet = require('../'); var diff = difflet(); var test = require('tap').test; test('diffing NaN against NaN', function (t) { t.plan(1); var d = diff.compare(NaN, NaN); t.equal(d, 'NaN'); }); test('diffing { o: NaN } against { o: NaN }', function (t) { t.plan(1); var d = diff.compare({ o: NaN }, { o: NaN }); t.equal(d, '{"o":NaN}'); });