Commit da6a8104 by felix

first commit

mocha test/test.js
parents
.idea/
node_modules/
{
"name": "jenkins",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "http://192.168.2.91/gitlab/felix/jenkins.git"
},
"author": "",
"license": "ISC",
"devDependencies": {
"intelli-espower-loader": "^1.0.1",
"mocha": "^4.0.1",
"power-assert": "^1.4.4",
"supertest": "^3.0.0"
},
"dependencies": {
"mqtt": "^2.14.0"
}
}
const mqtt = require('mqtt')
let client = mqtt.connect({
host: '120.27.235.39',
port: 1883,
username:'ugen',
password:'ugen'
});
client.on('connect', function () {
console.log("connect");
client.subscribe('TDL/#');
});
client.on('message', function (topic, message) {
console.log(topic);
console.log(message.toString())
});
\ No newline at end of file
const assert = require('power-assert');
describe('test', function () {
before((done) =>{
done();
});
it("test",(done)=>{
assert(1===1,"e");
done();
});
after((done)=>{
done();
});
});
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment