We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c656b9f + 302246d commit 7f15722Copy full SHA for 7f15722
mocha.start.js
@@ -131,17 +131,12 @@ beforeEach(function () {
131
global.DSErrors = globals.DSErrors;
132
});
133
134
-afterEach(function (done) {
+afterEach(function* () {
135
globals.adapter = null;
136
global.adapter = null;
137
138
- adapter.destroyAll(Comment).then(function () {
139
- return adapter.destroyAll(Post);
140
- }).then(function () {
141
- return adapter.destroyAll(User);
142
143
- return adapter.destroyAll(Profile);
144
145
- done();
146
- }, done);
+ yield adapter.destroyAll(Comment);
+ yield adapter.destroyAll(Post);
+ yield adapter.destroyAll(User);
+ yield adapter.destroyAll(Profile);
147
0 commit comments