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:
Nazar Gargol 2020-06-19 14:20:56 +12:00
parent db41122e26
commit 6aefc005f8

View File

@ -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