Skip to content

Commit 7f15722

Browse files
committed
Merge pull request #21 from techniq/filter-joins
Support filtering across relations (apply joins / fix column name). Fixes #18
2 parents c656b9f + 302246d commit 7f15722

File tree

4 files changed

+224
-186
lines changed

4 files changed

+224
-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)