Merge pull request #115 from strongloop/fix-regex-unit-test-setup

Fix RegExp unit test setup/teardown
This commit is contained in:
Simon Ho 2015-07-28 18:15:47 -07:00
commit 7e22957469
1 changed files with 4 additions and 1 deletions

View File

@ -498,13 +498,16 @@ describe('mysql', function () {
}); });
context('regexp operator', function() { context('regexp operator', function() {
beforeEach(function deleteExistingTestFixtures(done) {
Post.destroyAll(done);
});
beforeEach(function createTestFixtures(done) { beforeEach(function createTestFixtures(done) {
Post.create([ Post.create([
{title: 'a', content: 'AAA'}, {title: 'a', content: 'AAA'},
{title: 'b', content: 'BBB'} {title: 'b', content: 'BBB'}
], done); ], done);
}); });
afterEach(function deleteTestFixtures(done) { after(function deleteTestFixtures(done) {
Post.destroyAll(done); Post.destroyAll(done);
}); });