Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

add object diff test

TJ Holowaychuk1ca865a4ce3b
diff --git a/test/acceptance/diffs.js b/test/acceptance/diffs.js
index 4714fcca..1ce02c15 100644
--- a/test/acceptance/diffs.js
+++ b/test/acceptance/diffs.js
@@ -21,4 +21,22 @@ describe('diffs', function(){
it('should display a word diff for large strings', function(){
// cssin.should.equal(cssout);
})
+
+ it('should work with objects', function(){
+ var tobi = {
+ name: 'tobi',
+ species: 'ferret',
+ color: 'white',
+ age: 2
+ };
+
+ var loki = {
+ name: 'loki',
+ species: 'ferret',
+ color: 'brown',
+ age: 2
+ };
+
+ // tobi.should.eql(loki);
+ })
})