0
Fork 0
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:
Rish 2020-10-15 16:05:49 +05:30
parent a5a7515fe8
commit 288de8758a

View file

@ -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 () {