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:
parent
b9144ff987
commit
b3796a8e24
@ -96,7 +96,7 @@ describe("flows api", function() {
|
||||
return done(err);
|
||||
}
|
||||
try {
|
||||
res.body.should.have.a.property('error','bad_api_version');
|
||||
res.body.should.have.a.property('code','invalid_api_version');
|
||||
done();
|
||||
} catch(e) {
|
||||
return done(e);
|
||||
@ -167,7 +167,7 @@ describe("flows api", function() {
|
||||
if (err) {
|
||||
return done(err);
|
||||
}
|
||||
res.body.should.have.property("error","version_mismatch");
|
||||
res.body.should.have.property("code","version_mismatch");
|
||||
done();
|
||||
});
|
||||
});
|
||||
@ -230,7 +230,7 @@ describe("flows api", function() {
|
||||
return done(err);
|
||||
}
|
||||
try {
|
||||
res.body.should.have.a.property('error','bad_api_version');
|
||||
res.body.should.have.a.property('code','invalid_api_version');
|
||||
done();
|
||||
} catch(e) {
|
||||
return done(e);
|
||||
|
Loading…
Reference in New Issue
Block a user