projects
/
websub-hub
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'v1.1-dev' as v1.1.5
[websub-hub]
/
test
/
src
/
db
/
base.js
diff --git
a/test/src/db/base.js
b/test/src/db/base.js
index 18871f43e7dbcbb1b4c7da059e624026b37b4e41..786365722b13880f698b4f46184b3d4f3749bda2 100644
(file)
--- a/
test/src/db/base.js
+++ b/
test/src/db/base.js
@@
-108,7
+108,7
@@
describe('DatabaseBase', function () {
});
}); // _ensureTypes
});
}); // _ensureTypes
- describe('
schemaCheck
', function () {
+ describe('
initialize
', function () {
let currentSchema;
beforeEach(function () {
currentSchema = {
let currentSchema;
beforeEach(function () {
currentSchema = {
@@
-123,7
+123,7
@@
describe('DatabaseBase', function () {
sinon.stub(db, '_currentSchema').resolves(currentSchema);
});
it('covers success', async function () {
sinon.stub(db, '_currentSchema').resolves(currentSchema);
});
it('covers success', async function () {
- await db.
schemaCheck
();
+ await db.
initialize
();
});
it('covers failure', async function() {
db.schemaVersionsSupported = {
});
it('covers failure', async function() {
db.schemaVersionsSupported = {
@@
-139,13
+139,13
@@
describe('DatabaseBase', function () {
},
};
try {
},
};
try {
- await db.
schemaCheck
();
+ await db.
initialize
();
assert.fail('did not get expected exception');
} catch (e) {
assert(e instanceof DBErrors.MigrationNeeded);
}
});
assert.fail('did not get expected exception');
} catch (e) {
assert(e instanceof DBErrors.MigrationNeeded);
}
});
- }); //
schemaCheck
+ }); //
initialize
describe('_topicDefaults', function () {
let topic;
describe('_topicDefaults', function () {
let topic;