mirror of
https://github.com/Febbweiss/CloudBudget.git
synced 2026-03-04 22:35:38 +00:00
23 lines
538 B
JavaScript
23 lines
538 B
JavaScript
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);
|
|
})
|
|
}) |