From 8eb1a02407b5c39a3200297781ff872f97aabf58 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Fri, 6 Feb 2015 17:27:43 +0000 Subject: [PATCH] Fix unit test failures following mocha upgrade --- test/red/api/nodes_spec.js | 2 +- test/red/storage/localfilesystem_spec.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/red/api/nodes_spec.js b/test/red/api/nodes_spec.js index c962631d7..7f08714e2 100644 --- a/test/red/api/nodes_spec.js +++ b/test/red/api/nodes_spec.js @@ -217,7 +217,7 @@ describe("nodes api", function() { if (module === "foo") { return { name:"foo", - nodes:[{id:123}] + nodes:[{id:"123"}] }; } }); diff --git a/test/red/storage/localfilesystem_spec.js b/test/red/storage/localfilesystem_spec.js index fe2ec629f..b6c37ab84 100644 --- a/test/red/storage/localfilesystem_spec.js +++ b/test/red/storage/localfilesystem_spec.js @@ -264,7 +264,7 @@ describe('LocalFileSystem', function() { it('should return an empty list of library objects',function(done) { localfilesystem.init({userDir:userDir}).then(function() { localfilesystem.getLibraryEntry('object','').then(function(flows) { - flows.should.eql({}); + flows.should.eql([]); done(); }).otherwise(function(err) { done(err);