Skip to content

Commit

Permalink
added a very basic npm test setup
Browse files Browse the repository at this point in the history
  • Loading branch information
hoeken committed Aug 8, 2023
1 parent 0af74a0 commit 20e2344
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"node": ">=16"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "mocha"
},
"files": [
"index.js"
Expand All @@ -25,5 +25,8 @@
],
"dependencies": {
"websocket": "^1.0.34"
},
"devDependencies": {
"mocha": "^5.0.0"
}
}
12 changes: 0 additions & 12 deletions test.js

This file was deleted.

10 changes: 10 additions & 0 deletions test/test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env node
const YarrboardClient = require('../');
const mocha = require('mocha');

describe('YarrboardClient()', function () {
it('create our object without error', function (done) {
let yb = new YarrboardClient();
done();
});
});

0 comments on commit 20e2344

Please sign in to comment.