Skip to content

Commit 4499cd9

Browse files
stripping down for travis testing
1 parent 5e51a61 commit 4499cd9

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

tests/test.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,20 @@ import db from '../src/db/db'
1111

1212
//Before all promosie fix for async/await Jest
1313
//https://github.com/facebook/jest/issues/1760
14-
beforeAll(() => {
15-
global.Promise = require.requireActual('promise');
16-
});
14+
// beforeAll(() => {
15+
// global.Promise = require.requireActual('promise');
16+
// });
1717

1818
//After all the tests are done we're going to close our server
1919
//and rollback our database.
20-
afterAll(async () => {
21-
await db.migrate.rollback()
22-
23-
//This closes the app but it doesn't stop the tests in
24-
//Jest when done - that's why we have to --forceExit
25-
//when running Jest for now.
26-
return server.close()
27-
});
20+
// afterAll(async () => {
21+
// await db.migrate.rollback()
22+
23+
// //This closes the app but it doesn't stop the tests in
24+
// //Jest when done - that's why we have to --forceExit
25+
// //when running Jest for now.
26+
// return server.close()
27+
// });
2828

2929
describe('general actions', () => {
3030
it('returns homepage', async () => {

0 commit comments

Comments
 (0)