mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
Fixed unit tests - DB integriti checks
- Needed to be updated after adding new preview email permissions to the permission fixtures
This commit is contained in:
parent
9daed773c9
commit
164861da76
2 changed files with 8 additions and 8 deletions
|
@ -150,19 +150,19 @@ describe('Migration Fixture Utils', function () {
|
|||
fixtureUtils.addFixturesForRelation(fixtures.relations[0]).then(function (result) {
|
||||
should.exist(result);
|
||||
result.should.be.an.Object();
|
||||
result.should.have.property('expected', 56);
|
||||
result.should.have.property('done', 56);
|
||||
result.should.have.property('expected', 61);
|
||||
result.should.have.property('done', 61);
|
||||
|
||||
// Permissions & Roles
|
||||
permsAllStub.calledOnce.should.be.true();
|
||||
rolesAllStub.calledOnce.should.be.true();
|
||||
dataMethodStub.filter.callCount.should.eql(56);
|
||||
dataMethodStub.filter.callCount.should.eql(61);
|
||||
dataMethodStub.find.callCount.should.eql(7);
|
||||
baseUtilAttachStub.callCount.should.eql(56);
|
||||
baseUtilAttachStub.callCount.should.eql(61);
|
||||
|
||||
fromItem.related.callCount.should.eql(56);
|
||||
fromItem.findWhere.callCount.should.eql(56);
|
||||
toItem[0].get.callCount.should.eql(112);
|
||||
fromItem.related.callCount.should.eql(61);
|
||||
fromItem.findWhere.callCount.should.eql(61);
|
||||
toItem[0].get.callCount.should.eql(122);
|
||||
|
||||
done();
|
||||
}).catch(done);
|
||||
|
|
|
@ -20,7 +20,7 @@ var should = require('should'),
|
|||
describe('DB version integrity', function () {
|
||||
// Only these variables should need updating
|
||||
const currentSchemaHash = 'b76727048bd7851cb9fbfbefc9b00745';
|
||||
const currentFixturesHash = '59714063fa30b2f3fbfc929551b3c1e5';
|
||||
const currentFixturesHash = '84005b6e8f62231b6fd0fc261ce893db';
|
||||
|
||||
// If this test is failing, then it is likely a change has been made that requires a DB version bump,
|
||||
// and the values above will need updating as confirmation
|
||||
|
|
Loading…
Add table
Reference in a new issue