Fix RegExp unit test setup/teardown
This commit is contained in:
parent
6afb665b3d
commit
31671b5c25
|
@ -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);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue