mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Merge pull request #3840 from jaswilli/pg-import-test
Change tests to accommodate pg differences.
This commit is contained in:
commit
98c89b4858
1 changed files with 1 additions and 12 deletions
|
@ -606,19 +606,8 @@ describe('Import', function () {
|
|||
}).then(function () {
|
||||
done(new Error('Allowed import of duplicate data'));
|
||||
}).catch(function (response) {
|
||||
response.length.should.equal(3);
|
||||
response.length.should.be.above(0);
|
||||
response[0].type.should.equal('DataImportError');
|
||||
response[0].message.should.eql(
|
||||
'Duplicate entry found. Multiple values of "tagging-things" found for tags.slug.'
|
||||
);
|
||||
response[1].type.should.equal('DataImportError');
|
||||
response[1].message.should.eql(
|
||||
'Duplicate entry found. Multiple values of "tagging-things" found for tags.slug.'
|
||||
);
|
||||
response[2].type.should.equal('DataImportError');
|
||||
response[2].message.should.eql(
|
||||
'Duplicate entry found. Multiple values of "test-ghost-post" found for posts.slug.'
|
||||
);
|
||||
done();
|
||||
}).catch(done);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue