Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rmi22186 committed Jan 9, 2024
1 parent 5f62a29 commit a5719e4
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/identity.js
Original file line number Diff line number Diff line change
Expand Up @@ -1472,8 +1472,8 @@ export default function Identity(mpInstance) {
callback,
identityApiData,
method,
knownIdentities,
fromCache,
knownIdentities
// fromCache,
) {
var prevUser = mpInstance.Identity.getUser(previousMPID),
newUser,
Expand Down
2 changes: 1 addition & 1 deletion test/src/_test.index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ import './tests-utils';
import './tests-session-manager';
import './tests-store';
import './tests-config-api-client';
import './tests-identity-utils.ts'
import './tests-identity-utils';
6 changes: 5 additions & 1 deletion test/src/tests-identity-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ import {
import { LocalStorageVault } from "../../src/vault";
import { Dictionary } from "../../src/utils";
import { expect } from 'chai';
import { MILLISECONDS_IN_ONE_DAY, MILLISECONDS_IN_ONE_DAY_PLUS_ONE_SECOND, testMPID } from './config';
import {
MILLISECONDS_IN_ONE_DAY,
MILLISECONDS_IN_ONE_DAY_PLUS_ONE_SECOND,
testMPID
} from './config/constants';

import sinon from 'sinon';

Expand Down
9 changes: 4 additions & 5 deletions test/src/tests-identity.js
Original file line number Diff line number Diff line change
Expand Up @@ -1094,7 +1094,7 @@ describe('identity', function() {
{},
JSON.stringify({ mpid: 'user1', is_logged_in: false }),
]);
debugger;

mParticle.Identity.login(userIdentities1);

// get user 2 into cookies
Expand Down Expand Up @@ -3115,16 +3115,15 @@ describe('identity', function() {
}

mParticle.config.identifyRequest = identities;
debugger;

mParticle.init(apiKey, window.mParticle.config);

const initialIdentityCall = getIdentityEvent(mockServer.requests, 'identify');
initialIdentityCall.should.be.ok();
mockServer.requests = [];
function callback(result) {
debugger;
function callback() {
// debugger;
}
debugger;
mParticle.Identity.identify(identities, callback);
const duplicateIdentityCall = getIdentityEvent(mockServer.requests, 'identify');

Expand Down
1 change: 0 additions & 1 deletion test/src/tests-self-hosting-specific.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ describe('/config self-hosting integration tests', function() {
[200, {}, JSON.stringify({ workspaceToken: 'workspaceTokenTest' })]
);

debugger;
mockServer.respondWith(urls.identify, [
200,
{},
Expand Down

0 comments on commit a5719e4

Please sign in to comment.