From b3796a8e2413426f226a647ebf16a64c9913ccc0 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Wed, 12 Oct 2016 10:33:51 +0100 Subject: [PATCH] Fix unit tests for /flows --- test/red/api/flows_spec.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/red/api/flows_spec.js b/test/red/api/flows_spec.js index 4d4646980..cd5b6ee1a 100644 --- a/test/red/api/flows_spec.js +++ b/test/red/api/flows_spec.js @@ -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);