Skip to content

Commit cff24b0

Browse files
Clean up code
1 parent 561154f commit cff24b0

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

test/src/tests-identity.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4448,7 +4448,7 @@ describe('identity', function() {
44484448
})
44494449

44504450
it('should not set currentUser if the email is not positively identified', async () => {
4451-
fetchMockSuccess(urls.logout, {
4451+
fetchMockSuccess(urls.identify, {
44524452
context: null,
44534453
matched_identities: {
44544454
device_application_stamp: 'my-das',
@@ -4460,10 +4460,7 @@ describe('identity', function() {
44604460

44614461
mParticle.init(apiKey, { ...window.mParticle.config, kitConfigs: [roktConfig] });
44624462

4463-
await waitForCondition(() => {
4464-
console.log('hasIdentifyReturned', mParticle.Identity.getCurrentUser()?.getMPID());
4465-
return hasIdentifyReturned('testMPID');
4466-
});
4463+
await waitForCondition(() => hasIdentifyReturned('testMPID'));
44674464

44684465
fetchMock.post(urls.identify, {
44694466
status: HTTP_BAD_REQUEST,

0 commit comments

Comments
 (0)