From 164861da760eabad9f5636333559aafa28055f07 Mon Sep 17 00:00:00 2001 From: Nazar Gargol Date: Tue, 5 Nov 2019 12:23:52 +0700 Subject: [PATCH] Fixed unit tests - DB integriti checks - Needed to be updated after adding new preview email permissions to the permission fixtures --- core/test/unit/data/schema/fixtures/utils_spec.js | 14 +++++++------- core/test/unit/data/schema/integrity_spec.js | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/core/test/unit/data/schema/fixtures/utils_spec.js b/core/test/unit/data/schema/fixtures/utils_spec.js index 55e6f95ae9..f6d3a238c1 100644 --- a/core/test/unit/data/schema/fixtures/utils_spec.js +++ b/core/test/unit/data/schema/fixtures/utils_spec.js @@ -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); diff --git a/core/test/unit/data/schema/integrity_spec.js b/core/test/unit/data/schema/integrity_spec.js index bad7e1dbf5..7057a30a7c 100644 --- a/core/test/unit/data/schema/integrity_spec.js +++ b/core/test/unit/data/schema/integrity_spec.js @@ -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