From d4ac4c44d01576eed4b9abd16bdeba6a123918af Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Sat, 4 Apr 2015 19:33:37 +0100 Subject: [PATCH] Fix library test for deprecated storage api --- test/red/api/library_spec.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/red/api/library_spec.js b/test/red/api/library_spec.js index 3685ea6f5..7c39c23ed 100644 --- a/test/red/api/library_spec.js +++ b/test/red/api/library_spec.js @@ -76,7 +76,7 @@ describe("library api", function() { app.get(new RegExp("/library/flows\/(.*)"),library.get); }); it('returns empty result', function(done) { - initStorage({}); + initStorage({},{flows:{}}); request(app) .get('/library/flows') .expect(200) @@ -91,7 +91,7 @@ describe("library api", function() { }); it('returns 404 for non-existent entry', function(done) { - initStorage({}); + initStorage({},{flows:{}}); request(app) .get('/library/flows/foo') .expect(404) @@ -100,7 +100,7 @@ describe("library api", function() { it('can store and retrieve item', function(done) { - initStorage({}); + initStorage({},{flows:{}}); var flow = '[]'; request(app) .post('/library/flows/foo')