Skip to content

Commit

Permalink
sync before tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sushantdhiman committed Aug 8, 2016
1 parent 079641b commit 2a50d84
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/integration/user-creation.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ var expect = require('expect.js');
var request = require('supertest');

describe('user creation page', function () {
before(function () {
return require('../../models').sequelize.sync();
});

beforeEach(function () {
this.models = require('../../models');

Expand Down
4 changes: 4 additions & 0 deletions test/unit/task.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
var expect = require('expect.js');

describe('models/task', function () {
before(function () {
return require('../../models').sequelize.sync();
});

beforeEach(function () {
this.User = require('../../models').User;
this.Task = require('../../models').Task;
Expand Down

0 comments on commit 2a50d84

Please sign in to comment.