Skip to content
This repository was archived by the owner on Jun 27, 2019. It is now read-only.

Commit 0f024d5

Browse files
disabled default application tests
1 parent 796afdb commit 0f024d5

File tree

2 files changed

+46
-46
lines changed

2 files changed

+46
-46
lines changed

test/app.test.js

Lines changed: 0 additions & 46 deletions
This file was deleted.

test/app.test.js.bak

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
const assert = require('assert');
2+
const rp = require('request-promise');
3+
const app = require('../server/app');
4+
5+
describe('Feathers application tests', () => {
6+
before(function(done) {
7+
this.server = app.listen(3031);
8+
this.server.once('listening', () => done());
9+
});
10+
11+
after(function(done) {
12+
this.server.close(done);
13+
});
14+
15+
// it('starts and shows the index page', () => {
16+
// return rp('http://localhost:3031').then(body =>
17+
// assert.ok(body.indexOf('<html>') !== -1)
18+
// );
19+
// });
20+
21+
//describe('404', function() {
22+
// it('shows a 404 HTML page', () => {
23+
// return rp({
24+
// url: 'http://localhost:3031/path/to/nowhere',
25+
// headers: {
26+
// 'Accept': 'text/html'
27+
// }
28+
// }).catch(res => {
29+
// assert.equal(res.statusCode, 404);
30+
// assert.ok(res.error.indexOf('<html>') !== -1);
31+
// });
32+
// });
33+
34+
// it('shows a 404 JSON error without stack trace', () => {
35+
// return rp({
36+
// url: 'http://localhost:3031/path/to/nowhere',
37+
// json: true
38+
// }).catch(res => {
39+
// assert.equal(res.statusCode, 404);
40+
// assert.equal(res.error.code, 404);
41+
// assert.equal(res.error.message, 'Page not found');
42+
// assert.equal(res.error.name, 'NotFound');
43+
// });
44+
// });
45+
//});
46+
});

0 commit comments

Comments
 (0)