mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
update load of grunt related versions
and mqtt and fs-extra and should. Fix tests to keep working.
This commit is contained in:
parent
0a1257a23a
commit
4bc482bc85
26
package.json
26
package.json
@ -34,12 +34,12 @@
|
||||
"cron":"1.1.0",
|
||||
"express": "4.13.4",
|
||||
"follow-redirects":"0.0.7",
|
||||
"fs-extra": "0.26.7",
|
||||
"fs-extra": "0.27.0",
|
||||
"fs.notify":"0.0.4",
|
||||
"i18next":"1.10.6",
|
||||
"is-utf8":"0.2.1",
|
||||
"media-typer": "0.3.0",
|
||||
"mqtt": "1.7.4",
|
||||
"mqtt": "1.8.0",
|
||||
"mustache": "2.2.1",
|
||||
"nopt": "3.0.6",
|
||||
"oauth2orize":"1.2.2",
|
||||
@ -66,21 +66,21 @@
|
||||
"devDependencies": {
|
||||
"grunt": "0.4.5",
|
||||
"grunt-chmod": "1.1.1",
|
||||
"grunt-cli": "0.1.13",
|
||||
"grunt-concurrent":"2.2.1",
|
||||
"grunt-contrib-clean":"0.7.0",
|
||||
"grunt-contrib-compress": "0.14.0",
|
||||
"grunt-contrib-concat":"0.5.1",
|
||||
"grunt-contrib-copy": "0.8.2",
|
||||
"grunt-contrib-jshint": "0.12.0",
|
||||
"grunt-contrib-uglify": "0.11.1",
|
||||
"grunt-contrib-watch":"0.6.1",
|
||||
"grunt-cli": "1.2.0",
|
||||
"grunt-concurrent":"2.3.0",
|
||||
"grunt-contrib-clean":"1.0.0",
|
||||
"grunt-contrib-compress": "1.2.0",
|
||||
"grunt-contrib-concat":"1.0.0",
|
||||
"grunt-contrib-copy": "1.0.0",
|
||||
"grunt-contrib-jshint": "1.0.0",
|
||||
"grunt-contrib-uglify": "1.0.1",
|
||||
"grunt-contrib-watch":"1.0.0",
|
||||
"grunt-jsonlint":"1.0.7",
|
||||
"grunt-nodemon":"0.4.1",
|
||||
"grunt-nodemon":"0.4.2",
|
||||
"grunt-sass":"1.1.0",
|
||||
"grunt-simple-mocha": "0.4.1",
|
||||
"mocha": "2.4.5",
|
||||
"should": "6.0.3",
|
||||
"should": "8.3.1",
|
||||
"sinon": "1.17.3",
|
||||
"supertest": "1.2.0"
|
||||
},
|
||||
|
@ -65,12 +65,14 @@ describe('exec node', function() {
|
||||
n2.on("input", function(msg) {
|
||||
//console.log(msg);
|
||||
msg.should.have.property("payload");
|
||||
msg.payload.should.be.a.String.and.equal("echo");
|
||||
msg.payload.should.be.a.String;
|
||||
msg.payload.should.equal("echo");
|
||||
});
|
||||
n3.on("input", function(msg) {
|
||||
//console.log(msg);
|
||||
msg.should.have.property("payload");
|
||||
msg.payload.should.be.a.String.and.equal("ECHO");
|
||||
msg.payload.should.be.a.String,
|
||||
msg.payload.should.equal("ECHO");
|
||||
done();
|
||||
child_process.exec.restore();
|
||||
});
|
||||
@ -96,12 +98,14 @@ describe('exec node', function() {
|
||||
n2.on("input", function(msg) {
|
||||
//console.log(msg);
|
||||
msg.should.have.property("payload");
|
||||
msg.payload.should.be.a.String.and.equal("echo and more");
|
||||
msg.payload.should.be.a.String;
|
||||
msg.payload.should.equal("echo and more");
|
||||
});
|
||||
n3.on("input", function(msg) {
|
||||
//console.log(msg);
|
||||
msg.should.have.property("payload");
|
||||
msg.payload.should.be.a.String.and.equal("ECHO AND MORE");
|
||||
msg.payload.should.be.a.String;
|
||||
msg.payload.should.equal("ECHO AND MORE");
|
||||
done();
|
||||
child_process.exec.restore();
|
||||
});
|
||||
@ -133,7 +137,8 @@ describe('exec node', function() {
|
||||
n4.on("input", function(msg) {
|
||||
//console.log(msg);
|
||||
msg.should.have.property("payload");
|
||||
msg.payload.should.be.a.String.and.equal("error");
|
||||
msg.payload.should.be.a.String;
|
||||
msg.payload.should.equal("error");
|
||||
done();
|
||||
child_process.exec.restore();
|
||||
});
|
||||
@ -173,7 +178,8 @@ describe('exec node', function() {
|
||||
n2.on("input", function(msg) {
|
||||
//console.log(msg);
|
||||
msg.should.have.property("payload");
|
||||
msg.payload.should.be.a.String.and.equal("hello world\n");
|
||||
msg.payload.should.be.a.String;
|
||||
msg.payload.should.equal("hello world\n");
|
||||
done();
|
||||
//child_process.spawn.restore();
|
||||
});
|
||||
@ -200,7 +206,8 @@ describe('exec node', function() {
|
||||
n2.on("input", function(msg) {
|
||||
//console.log(msg);
|
||||
msg.should.have.property("payload");
|
||||
msg.payload.should.be.a.String.and.equal("12345 deg C\n");
|
||||
msg.payload.should.be.a.String;
|
||||
msg.payload.should.equal("12345 deg C\n");
|
||||
done();
|
||||
});
|
||||
n1.receive({payload:12345});
|
||||
@ -224,7 +231,7 @@ describe('exec node', function() {
|
||||
logEvents[0][0].should.have.a.property('msg');
|
||||
logEvents[0][0].msg.toString().should.startWith("Spawn command");
|
||||
done();
|
||||
},150);
|
||||
},150);me
|
||||
n1.receive({payload:null});
|
||||
});
|
||||
});
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user