Skip to content

Commit

Permalink
Fix formatting for auth files. (#6573)
Browse files Browse the repository at this point in the history
  • Loading branch information
prameshj committed Aug 31, 2022
1 parent 04dcdbb commit 37a8abd
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
4 changes: 2 additions & 2 deletions packages/auth/karma.conf.js
Expand Up @@ -54,10 +54,10 @@ function getTestFiles(argv) {
}

function getTestBrowsers(argv) {
let browsers = ["ChromeHeadless"];
let browsers = ['ChromeHeadless'];
if (process.env?.BROWSERS && argv.unit) {
browsers = process.env?.BROWSERS?.split(',');
}
}
return browsers;
}

Expand Down
4 changes: 3 additions & 1 deletion packages/auth/src/core/util/version.test.ts
Expand Up @@ -42,7 +42,9 @@ describe('core/util/_getClientVersion', () => {
context('worker', () => {
it('should set the correct version', () => {
expect(_getClientVersion(ClientPlatform.WORKER)).to.eq(
`${_getBrowserName(getUA())}-Worker/JsCore/${SDK_VERSION}/FirebaseCore-web`
`${_getBrowserName(
getUA()
)}-Worker/JsCore/${SDK_VERSION}/FirebaseCore-web`
);
});
});
Expand Down
Expand Up @@ -66,8 +66,8 @@ describe('platform_browser/persistence/session_storage', () => {
afterEach(() => sinon.restore());

it('should emit false if sessionStorage setItem throws', async () => {
sinon.stub(Storage.prototype, 'setItem').throws(new Error('nope'));
expect(await persistence._isAvailable()).to.be.false;
sinon.stub(Storage.prototype, 'setItem').throws(new Error('nope'));
expect(await persistence._isAvailable()).to.be.false;
});

it('should emit false if sessionStorage removeItem throws', async () => {
Expand Down
Expand Up @@ -73,8 +73,10 @@ describe('platform_cordova/popup_redirect/events', () => {
const spy = sinon.spy(Storage.prototype, 'setItem');
const event = _generateNewEvent(auth, AuthEventType.REAUTH_VIA_REDIRECT);
await _savePartialEvent(auth, event);
expect(spy).to.have.been.calledWith('firebase:authEvent:test-api-key:test-app',
JSON.stringify(event));
expect(spy).to.have.been.calledWith(
'firebase:authEvent:test-api-key:test-app',
JSON.stringify(event)
);
});
});

Expand Down

0 comments on commit 37a8abd

Please sign in to comment.