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

Fix unit tests for /flows

This commit is contained in:
Nick O'Leary 2016-10-12 10:33:51 +01:00
parent b9144ff987
commit b3796a8e24

View File

@ -96,7 +96,7 @@ describe("flows api", function() {
return done(err); return done(err);
} }
try { try {
res.body.should.have.a.property('error','bad_api_version'); res.body.should.have.a.property('code','invalid_api_version');
done(); done();
} catch(e) { } catch(e) {
return done(e); return done(e);
@ -167,7 +167,7 @@ describe("flows api", function() {
if (err) { if (err) {
return done(err); return done(err);
} }
res.body.should.have.property("error","version_mismatch"); res.body.should.have.property("code","version_mismatch");
done(); done();
}); });
}); });
@ -230,7 +230,7 @@ describe("flows api", function() {
return done(err); return done(err);
} }
try { try {
res.body.should.have.a.property('error','bad_api_version'); res.body.should.have.a.property('code','invalid_api_version');
done(); done();
} catch(e) { } catch(e) {
return done(e); return done(e);