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:
parent
f459ff8ad0
commit
d4ac4c44d0
@ -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')
|
||||||
|
Loading…
Reference in New Issue
Block a user