Skip to content

Commit 9b481e5

Browse files
authored
Add migration tests for v7 & v8 (#8625)
1 parent 44db15a commit 9b481e5

File tree

3 files changed

+33
-5
lines changed

3 files changed

+33
-5
lines changed

tests/integration/browser.migration.js

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* global PouchDBVersion110, PouchDBVersion200,
22
PouchDBVersion220, PouchDBVersion306, PouchDBVersion320,
3-
PouchDBVersion360 */
3+
PouchDBVersion360, PouchDBVersion731, PouchDBVersion801 */
44
'use strict';
55

66
describe('migration', function () {
@@ -19,6 +19,8 @@ describe('migration', function () {
1919
'PouchDB v3.0.6',
2020
'PouchDB v3.2.0',
2121
'PouchDB v3.6.0',
22+
'PouchDB v7.3.1',
23+
'PouchDB v8.0.1',
2224
'websql'
2325
];
2426

@@ -67,6 +69,8 @@ describe('migration', function () {
6769
delete window.PouchDBVersion306;
6870
delete window.PouchDBVersion320;
6971
delete window.PouchDBVersion360;
72+
delete window.PouchDBVersion731;
73+
delete window.PouchDBVersion801;
7074
});
7175

7276
scenarios.forEach(function (scenario) {
@@ -80,19 +84,27 @@ describe('migration', function () {
8084
'PouchDB v2.2.0',
8185
'PouchDB v3.0.6',
8286
'PouchDB v3.2.0',
83-
'PouchDB v3.6.0'
87+
'PouchDB v3.6.0',
88+
'PouchDB v7.3.1',
89+
'PouchDB v8.0.1',
8490
].indexOf(scenario) !== -1;
8591
var post306 = [
8692
'PouchDB v3.0.6',
8793
'PouchDB v3.2.0',
88-
'PouchDB v3.6.0'
94+
'PouchDB v3.6.0',
95+
'PouchDB v7.3.1',
96+
'PouchDB v8.0.1',
8997
].indexOf(scenario) !== -1;
9098
var post320 = [
9199
'PouchDB v3.2.0',
92-
'PouchDB v3.6.0'
100+
'PouchDB v3.6.0',
101+
'PouchDB v7.3.1',
102+
'PouchDB v8.0.1',
93103
].indexOf(scenario) !== -1;
94104
var post360 = [
95-
'PouchDB v3.6.0'
105+
'PouchDB v3.6.0',
106+
'PouchDB v7.3.1',
107+
'PouchDB v8.0.1',
96108
].indexOf(scenario) !== -1;
97109

98110
beforeEach(function (done) {
@@ -107,6 +119,8 @@ describe('migration', function () {
107119
'PouchDB v3.0.6': PouchDBVersion306,
108120
'PouchDB v3.2.0': PouchDBVersion320,
109121
'PouchDB v3.6.0': PouchDBVersion360,
122+
'PouchDB v7.3.1': PouchDBVersion731,
123+
'PouchDB v8.0.1': PouchDBVersion801,
110124
PouchDB: PouchDB
111125
};
112126

tests/integration/deps/pouchdb-7.3.1-postfixed.js

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/integration/deps/pouchdb-8.0.1-postfixed.js

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)