mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Fix unit tests for /flows
This commit is contained in:
		@@ -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);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user