mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
Updated version check assertion in exporter test
refs https://github.com/TryGhost/Team/issues/555 - This version is dynamic and depends on latest Ghsot version. It's unrealistic to expect test maintainer to update this version regularly, instead opted into checking the format of the version property
This commit is contained in:
parent
ea90e0a314
commit
2d4a06023d
1 changed files with 2 additions and 7 deletions
|
@ -24,10 +24,6 @@ describe('Exporter', function () {
|
|||
|
||||
describe('doExport', function () {
|
||||
beforeEach(function () {
|
||||
exporter.__set__('ghostVersion', {
|
||||
full: '2.0.0'
|
||||
});
|
||||
|
||||
tablesStub = sinon.stub(schema.commands, 'getTables').returns(schemaTables);
|
||||
|
||||
queryMock = {
|
||||
|
@ -50,8 +46,7 @@ describe('Exporter', function () {
|
|||
|
||||
should.exist(exportData);
|
||||
|
||||
//TODO: Update when 3.0.0 is released
|
||||
exportData.meta.version.should.eql('2.0.0');
|
||||
exportData.meta.version.should.match(/\d+.\d+.\d+/gi);
|
||||
|
||||
tablesStub.calledOnce.should.be.true();
|
||||
db.knex.called.should.be.true();
|
||||
|
@ -97,7 +92,7 @@ describe('Exporter', function () {
|
|||
|
||||
should.exist(exportData);
|
||||
|
||||
exportData.meta.version.should.eql('2.0.0');
|
||||
exportData.meta.version.should.match(/\d+.\d+.\d+/gi);
|
||||
|
||||
tablesStub.calledOnce.should.be.true();
|
||||
db.knex.called.should.be.true();
|
||||
|
|
Loading…
Add table
Reference in a new issue