Skip to content

Commit dec30ff

Browse files
committed
Update AuthenticationAdaptersV2.spec.js
1 parent cfee0ff commit dec30ff

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

spec/AuthenticationAdaptersV2.spec.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,13 @@ describe('Auth Adapter features', () => {
354354
await user.fetch({ sessionToken: user.getSessionToken() });
355355
const authData = user.get('authData').modernAdapter3;
356356
expect(authData).toEqual({ foo: 'bar' });
357-
user._objCount = 3;
357+
for (const call of afterSpy.calls.all()) {
358+
const args = call.args[0];
359+
if (args.user) {
360+
user._objCount = args.user._objCount;
361+
break;
362+
}
363+
}
358364
expect(afterSpy).toHaveBeenCalledWith(
359365
{ ip: '127.0.0.1', user, master: false },
360366
{ id: 'modernAdapter3Data' },

0 commit comments

Comments
 (0)