mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-25 19:48:50 +03:00
Removed email validation test from members import validator
refs 2dfff367b9
- The test was removed because feature is no longer needed.
- Qoute from Zimo: " reason: it’s based on a sample so we don’t know for sure how much of the data is actually affected. we might bring it back in the future though"
This commit is contained in:
parent
db41122e26
commit
6aefc005f8
@ -42,19 +42,6 @@ describe('Integration: Service: member-import-validator', function () {
|
||||
expect(result[0].message).to.equal('File is empty, nothing to import. Please select a different file.');
|
||||
});
|
||||
|
||||
// NOTE: need to check if email validation has been remove intentionally
|
||||
xit('returns validation error for data with invalid email', async function () {
|
||||
let service = this.owner.lookup('service:member-import-validator');
|
||||
|
||||
const result = await service.check([{
|
||||
name: 'Egg',
|
||||
email: 'notAnEmail'
|
||||
}]);
|
||||
|
||||
expect(result.length).to.equal(1);
|
||||
expect(result[0].message).to.equal('Emails in provided data don\'t appear to be valid email addresses.');
|
||||
});
|
||||
|
||||
it('returns validation error for data with stripe_customer_id but no connected Stripe', async function () {
|
||||
this.owner.register('service:membersUtils', Service.extend({
|
||||
isStripeEnabled: false
|
||||
|
Loading…
Reference in New Issue
Block a user