Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix formatting for auth files. #6573

Merged
merged 1 commit into from Aug 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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