Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V2 #1

Open
wants to merge 21 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
2.0.0-alpha.19
jmdobry committed May 2, 2016
commit 0ab93e030fecc844e9b3e6dd9055e95ff1687632
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
##### 2.0.0-alpha.19 - 02 May 2016

- Fix for SQL testing

##### 2.0.0-alpha.18 - 02 May 2016

- Fix for SQL testing
17 changes: 11 additions & 6 deletions dist/js-data-adapter-tests.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/js-data-adapter-tests.js.map

Large diffs are not rendered by default.

10 changes: 7 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -244,9 +244,13 @@ export default {
if (Test.toClear.indexOf('Address') !== -1) {
toClear.push('Address')
}
await Promise.all(toClear.map(function (Mapper) {
return Test.$$adapter.destroyAll(Test['$$' + Mapper])
}))
let promise = Promise.resolve()
toClear.forEach(function (Mapper) {
promise = promise.then(function () {
return Test.$$adapter.destroyAll(Test['$$' + Mapper])
})
})
await promise
})
},
assert,