1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Fix library test for deprecated storage api

This commit is contained in:
Nick O'Leary 2015-04-04 19:33:37 +01:00
parent f459ff8ad0
commit d4ac4c44d0

View File

@ -76,7 +76,7 @@ describe("library api", function() {
app.get(new RegExp("/library/flows\/(.*)"),library.get); app.get(new RegExp("/library/flows\/(.*)"),library.get);
}); });
it('returns empty result', function(done) { it('returns empty result', function(done) {
initStorage({}); initStorage({},{flows:{}});
request(app) request(app)
.get('/library/flows') .get('/library/flows')
.expect(200) .expect(200)
@ -91,7 +91,7 @@ describe("library api", function() {
}); });
it('returns 404 for non-existent entry', function(done) { it('returns 404 for non-existent entry', function(done) {
initStorage({}); initStorage({},{flows:{}});
request(app) request(app)
.get('/library/flows/foo') .get('/library/flows/foo')
.expect(404) .expect(404)
@ -100,7 +100,7 @@ describe("library api", function() {
it('can store and retrieve item', function(done) { it('can store and retrieve item', function(done) {
initStorage({}); initStorage({},{flows:{}});
var flow = '[]'; var flow = '[]';
request(app) request(app)
.post('/library/flows/foo') .post('/library/flows/foo')