1
0

server.js 538 B

1234567891011121314151617181920212223
  1. var should = require('should'),
  2. request = require('supertest'),
  3. app = require('../server.js'),
  4. globalServer;
  5. describe('Static resources', function(){
  6. before(function () {
  7. globalServer = app.listen();
  8. });
  9. after(function () {
  10. globalServer.close();
  11. });
  12. it('should send index.html', function(done){
  13. request(globalServer)
  14. .get('/')
  15. .set('Accept', 'text/html')
  16. .expect('Content-Type', /html/)
  17. .expect(200, done);
  18. })
  19. })