From 8b8d474b921adfe7937bf2adaaaa643948c22491 Mon Sep 17 00:00:00 2001 From: Amir Jafarian Date: Tue, 29 Mar 2016 12:21:10 -0400 Subject: [PATCH] Add automigrate to setup tables for replace test cases --- test/manipulation.test.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/manipulation.test.js b/test/manipulation.test.js index e5c3d230..dcdb2aed 100644 --- a/test/manipulation.test.js +++ b/test/manipulation.test.js @@ -694,12 +694,13 @@ describe('manipulation', function () { describe('replaceOrCreate', function() { var Post; var ds = getSchema(); - before(function() { + before(function(done) { Post = ds.define('Post', { title: { type: String, length: 255, index: true }, content: { type: String }, comments: [String] }); + ds.automigrate('Post', done); }); it('works without options on create (promise variant)', function(done) { @@ -910,12 +911,13 @@ describe('manipulation', function () { var postInstance; var Post; var ds = getSchema(); - before(function () { + before(function (done) { Post = ds.define('Post', { title: {type: String, length: 255, index: true}, content: {type: String}, comments: [String] }); + ds.automigrate('Post', done); }); beforeEach(function (done) { Post.destroyAll(function () {