Skip to content

Commit 1cf73b9

Browse files
committed
Fix tests
1 parent 45cf135 commit 1cf73b9

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

packages-exp/auth-exp/src/core/credentials/saml.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ describe('core/credentials/saml', () => {
8686
expect(request.requestUri).to.eq('http://localhost');
8787
expect(request.returnSecureToken).to.be.true;
8888
expect(request.pendingToken).to.eq('pending-token');
89-
expect(request.postBody).to.be.null;
89+
expect(request.postBody).to.be.undefined;
9090
});
9191
});
9292

@@ -101,22 +101,22 @@ describe('core/credentials/saml', () => {
101101
await cred._getIdTokenResponse(auth);
102102

103103
const request = signInWithIdp.calls[0].request as SignInWithIdpRequest;
104-
expect(request.postBody).to.be.null;
104+
expect(request.postBody).to.be.undefined;
105105
expect(request.pendingToken).to.eq('pending-token');
106106
});
107107

108108
it('_linkToIdToken sets the idToken field on the request', async () => {
109109
await cred._linkToIdToken(auth, 'new-id-token');
110110
const request = signInWithIdp.calls[0].request as SignInWithIdpRequest;
111-
expect(request.postBody).to.be.null;
111+
expect(request.postBody).to.be.undefined;
112112
expect(request.pendingToken).to.eq('pending-token');
113113
expect(request.idToken).to.eq('new-id-token');
114114
});
115115

116116
it('_getReauthenticationResolver sets autoCreate to false', async () => {
117117
await cred._getReauthenticationResolver(auth);
118118
const request = signInWithIdp.calls[0].request as SignInWithIdpRequest;
119-
expect(request.postBody).to.be.null;
119+
expect(request.postBody).to.be.undefined;
120120
expect(request.pendingToken).to.eq('pending-token');
121121
expect(request.autoCreate).to.be.false;
122122
});

packages-exp/auth-exp/src/core/credentials/saml.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ export class SAMLAuthCredential extends AuthCredential {
117117
requestUri: IDP_REQUEST_URI,
118118
returnSecureToken: true,
119119
pendingToken: this.pendingToken,
120-
postBody: null
121120
};
122121
}
123122
}

0 commit comments

Comments
 (0)