mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
update load of grunt related versions
and mqtt and fs-extra and should. Fix tests to keep working.
This commit is contained in:
@@ -49,7 +49,8 @@ describe("flows api", function() {
|
||||
if (err) {
|
||||
return done(err);
|
||||
}
|
||||
res.body.should.be.an.Array.and.have.lengthOf(3);
|
||||
res.body.should.be.an.Array;
|
||||
res.body.should.have.lengthOf(3);
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
@@ -76,7 +76,8 @@ describe("nodes api", function() {
|
||||
if (err) {
|
||||
throw err;
|
||||
}
|
||||
res.body.should.be.an.Array.and.have.lengthOf(3);
|
||||
res.body.should.be.an.Array;
|
||||
res.body.should.have.lengthOf(3);
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
@@ -37,11 +37,13 @@ describe("red/settings", function() {
|
||||
|
||||
settings.a.should.equal(123);
|
||||
settings.b.should.equal("test");
|
||||
settings.c.should.be.an.Array.with.lengthOf(3);
|
||||
settings.c.should.be.an.Array;
|
||||
settings.c.should.have.lengthOf(3);
|
||||
|
||||
settings.get("a").should.equal(123);
|
||||
settings.get("b").should.equal("test");
|
||||
settings.get("c").should.be.an.Array.with.lengthOf(3);
|
||||
settings.get("c").should.be.an.Array;
|
||||
settings.get("c").should.have.lengthOf(3);
|
||||
|
||||
/*jshint immed: false */
|
||||
(function() {
|
||||
@@ -49,7 +51,8 @@ describe("red/settings", function() {
|
||||
}).should.throw();
|
||||
|
||||
settings.c.push(5);
|
||||
settings.c.should.be.an.Array.with.lengthOf(4);
|
||||
settings.c.should.be.an.Array;
|
||||
settings.c.should.have.lengthOf(4);
|
||||
|
||||
/*jshint immed: false */
|
||||
(function() {
|
||||
@@ -129,7 +132,8 @@ describe("red/settings", function() {
|
||||
|
||||
settings.should.have.property("a",123);
|
||||
settings.should.have.property("b","test");
|
||||
settings.c.should.be.an.Array.with.lengthOf(3);
|
||||
settings.c.should.be.an.Array;
|
||||
settings.c.should.have.lengthOf(3);
|
||||
|
||||
settings.reset();
|
||||
|
||||
|
Reference in New Issue
Block a user