Skip to content

Commit b0879cb

Browse files
authored
test.migration: move before() above beforeEach() (#8832)
before() runs before beforeEach(). Re-ordering the functions to reflect that makes it easier to see what is happening.
1 parent 15cd6a0 commit b0879cb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/integration/browser.migration.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,12 @@ describe('migration', function () {
8080

8181
var dbs = {};
8282

83+
before(function () {
84+
if (usingIndexeddb() && !versionGte(scenario, '7.2.1')) {
85+
return this.skip();
86+
}
87+
});
88+
8389
beforeEach(function (done) {
8490
if (skip) {
8591
return this.skip();
@@ -122,12 +128,6 @@ describe('migration', function () {
122128
testUtils.cleanup([dbs.first.local, dbs.second.local], done);
123129
});
124130

125-
before(function () {
126-
if (usingIndexeddb() && !versionGte(scenario, '7.2.1')) {
127-
return this.skip();
128-
}
129-
});
130-
131131
var origDocs = [
132132
{_id: '0', a: 1, b: 1},
133133
{_id: '3', a: 4, b: 16},

0 commit comments

Comments
 (0)