Set up environment for testing

This commit is contained in:
Paris 2016-06-09 10:04:53 +03:00
parent f87300d30e
commit fa093e2bd2
3 changed files with 16 additions and 2 deletions

5
bin/test Executable file
View File

@ -0,0 +1,5 @@
#! /bin/bash
#
# Testing script for xterm.js
node_modules/.bin/mocha $@

View File

@ -8,9 +8,12 @@
"devDependencies": {
"express": "4.13.4",
"express-ws": "2.0.0-rc.1",
"pty.js": "0.3.0"
"pty.js": "0.3.0",
"mocha": "2.5.3",
"chai": "3.5.0"
},
"scripts": {
"start": "bash bin/server"
"start": "bash bin/server",
"test": "bash bin/test"
}
}

6
test/test.js Normal file
View File

@ -0,0 +1,6 @@
var assert = require('chai').assert;
describe('xterm', function() {
// Just a dummy first test
});