Skip to content

Commit 8d626cd

Browse files
committed
Altera configuração do postgres no travis
1 parent 011808f commit 8d626cd

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

build/modules/User/integration.test.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,13 @@ var HTTPStatus = require("http-status");
55
var model = require('../../models');
66
if (process.env.TRAVIS == 'true') {
77
model.sequelize.sync().then(function () {
8-
test();
8+
console.log('Testing...');
99
});
10+
test();
11+
}
12+
else {
13+
test();
1014
}
11-
test();
1215
function test() {
1316
describe('## User Tests', function () {
1417
'use strict';

server/modules/User/integration.test.ts

+5-3
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@ import * as HTTPStatus from 'http-status';
55
var model = require('../../models');
66

77
if(process.env.TRAVIS == 'true') {
8-
model.sequelize.sync().then(() => {
9-
test();
8+
model.sequelize.sync().then(() => {
9+
console.log('Testing...')
1010
});
11+
test();
12+
} else {
13+
test();
1114
}
1215

13-
test();
1416
function test() {
1517
describe('## User Tests', () => {
1618
'use strict';

0 commit comments

Comments
 (0)