Skip to content

Commit

Permalink
un-xit test
Browse files Browse the repository at this point in the history
  • Loading branch information
dplewis committed Nov 21, 2024
1 parent 7842266 commit 6879188
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions spec/ParseUser.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -3662,8 +3662,7 @@ describe('Parse.User testing', () => {
}, done.fail);
});

xit('should not send a verification email if the user signed up using oauth', done => {
// 'this test fails. See: https://github.com/parse-community/parse-server/issues/5097'
it('should not send a verification email if the user signed up using oauth', async () => {
let emailCalledCount = 0;
const emailAdapter = {
sendVerificationEmail: () => {
Expand All @@ -3673,25 +3672,22 @@ describe('Parse.User testing', () => {
sendPasswordResetEmail: () => Promise.resolve(),
sendMail: () => Promise.resolve(),
};
reconfigureServer({
await reconfigureServer({
appName: 'unused',
verifyUserEmails: true,
emailAdapter: emailAdapter,
publicServerURL: 'http://localhost:8378/1',
});
const user = new Parse.User();
user.set('email', 'email1@host.com');
Parse.FacebookUtils.link(user, {
const linkedUser = await Parse.FacebookUtils.link(user, {
id: '8675309',
access_token: 'jenny',
expiration_date: new Date().toJSON(),
}).then(user => {
user.set('email', 'email2@host.com');
user.save().then(() => {
expect(emailCalledCount).toBe(0);
done();
});
});
linkedUser.set('email', 'email2@host.com');
await linkedUser.save();
expect(emailCalledCount).toBe(0);
});

it('should be able to update user with authData passed', done => {
Expand Down

0 comments on commit 6879188

Please sign in to comment.