Clean: no more embedded client\nFeature: add license + README up-to-date

This commit is contained in:
2015-09-02 12:09:08 +00:00
parent 695fc03f67
commit 30eeb6c59a
14 changed files with 42 additions and 65 deletions

23
test/server.js Normal file
View File

@@ -0,0 +1,23 @@
var should = require('should'),
request = require('supertest'),
app = require('../server.js'),
globalServer;
describe('Static resources', function(){
before(function () {
globalServer = app.listen();
});
after(function () {
globalServer.close();
});
it('should send index.html', function(done){
request(globalServer)
.get('/')
.set('Accept', 'text/html')
.expect('Content-Type', /html/)
.expect(200, done);
})
})