Skip to content

Commit 9d76cb3

Browse files
committed
Cleaned up auth tests
1 parent 80f29d4 commit 9d76cb3

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

packages/auth/src/api/index.test.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ import {
4141
import { ServerError } from './errors';
4242
import { SDK_VERSION } from '@firebase/app';
4343
import { _getBrowserName } from '../core/util/browser';
44-
import { connectAuthEmulator, FetchProvider } from '../../internal';
44+
import { FetchProvider } from '../../internal';
4545

4646
use(sinonChai);
4747
use(chaiAsPromised);
@@ -57,8 +57,6 @@ describe('api/_performApiRequest', () => {
5757

5858
let auth: TestAuth;
5959

60-
let fetchSpy: sinon.SinonSpy;
61-
6260
beforeEach(async () => {
6361
auth = await testAuth();
6462
});
@@ -68,10 +66,7 @@ describe('api/_performApiRequest', () => {
6866
});
6967

7068
context.only('with regular requests', () => {
71-
beforeEach(() => {
72-
mockFetch.setUp();
73-
fetchSpy = sinon.spy(FetchProvider.fetch());
74-
});
69+
beforeEach(mockFetch.setUp);
7570
afterEach(mockFetch.tearDown);
7671

7772
it('should set the correct request, method and HTTP Headers', async () => {

0 commit comments

Comments
 (0)