Skip to content

Commit 67b148a

Browse files
committed
Remove unnecessary logging
Yield promises with generator instead of chaining promises when cleaning up tests Consolidate and simplify loading of "with" relations for both find and findall Simplify looking up table name from resource config Support filtering across relations (apply joins / fix column name). Fixes #18
1 parent 1d341ba commit 67b148a

File tree

4 files changed

+200
-186
lines changed

4 files changed

+200
-186
lines changed

mocha.start.js

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -131,17 +131,12 @@ beforeEach(function () {
131131
global.DSErrors = globals.DSErrors;
132132
});
133133

134-
afterEach(function (done) {
134+
afterEach(function* () {
135135
globals.adapter = null;
136136
global.adapter = null;
137137

138-
adapter.destroyAll(Comment).then(function () {
139-
return adapter.destroyAll(Post);
140-
}).then(function () {
141-
return adapter.destroyAll(User);
142-
}).then(function () {
143-
return adapter.destroyAll(Profile);
144-
}).then(function () {
145-
done();
146-
}, done);
138+
yield adapter.destroyAll(Comment);
139+
yield adapter.destroyAll(Post);
140+
yield adapter.destroyAll(User);
141+
yield adapter.destroyAll(Profile);
147142
});

0 commit comments

Comments
 (0)