mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Fixed test for ignoring member email address'
no issue - Fixed test for members from address being ignored in import - Adds test for members support address being ignored in import
This commit is contained in:
parent
a5a7515fe8
commit
288de8758a
1 changed files with 16 additions and 1 deletions
|
@ -52,7 +52,22 @@ describe('SettingsImporter', function () {
|
|||
|
||||
const membersFromAddress = find(importer.dataToImport, {key: 'members_from_address'});
|
||||
|
||||
should.not.exist(membersFromAddress.value);
|
||||
should.not.exist(membersFromAddress);
|
||||
});
|
||||
|
||||
it('Does not overwrite members support address', function () {
|
||||
const fakeSettings = [{
|
||||
key: 'members_support_address',
|
||||
value: 'newemail@example.com'
|
||||
}];
|
||||
|
||||
const importer = new SettingsImporter({settings: fakeSettings}, {dataKeyToImport: 'settings'});
|
||||
|
||||
importer.beforeImport();
|
||||
|
||||
const membersSupportAddress = find(importer.dataToImport, {key: 'members_support_address'});
|
||||
|
||||
should.not.exist(membersSupportAddress);
|
||||
});
|
||||
|
||||
it('Adds a problem if the existing data is_private is false, and new data is_private is true', function () {
|
||||
|
|
Loading…
Add table
Reference in a new issue