Skip to content

Commit f4d7190

Browse files
committed
[AUTOMATED]: Prettier Code Styling
1 parent 9a69f78 commit f4d7190

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

packages/logger/test/logger.test.ts

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,26 +14,26 @@
1414
* limitations under the License.
1515
*/
1616

17-
import { expect } from "chai";
18-
import { spy as Spy } from "sinon";
19-
import { Logger, LogLevel } from "../src/logger";
20-
import { setLogLevel } from "../index";
21-
import { debug } from "util";
17+
import { expect } from 'chai';
18+
import { spy as Spy } from 'sinon';
19+
import { Logger, LogLevel } from '../src/logger';
20+
import { setLogLevel } from '../index';
21+
import { debug } from 'util';
2222

2323
describe('@firebase/logger', () => {
24-
const message = 'Hello there!';
24+
const message = 'Hello there!';
2525
let client: Logger;
2626
const spies = {
2727
debugSpy: null,
2828
logSpy: null,
2929
infoSpy: null,
3030
warnSpy: null,
3131
errorSpy: null
32-
}
32+
};
3333
/**
3434
* Before each test, instantiate a new instance of Logger and set the log
35-
* level so that all
36-
*
35+
* level so that all
36+
*
3737
* Also spy on all of the console methods so we can assert against them as
3838
* needed
3939
*/
@@ -56,12 +56,14 @@ describe('@firebase/logger', () => {
5656
});
5757

5858
function testLog(message, channel, shouldLog) {
59-
it(`Should ${shouldLog ? '' : 'not'} call \`console.${channel}\` if \`.${channel}\` is called`, () => {
59+
it(`Should ${shouldLog ? '' : 'not'} call \`console.${channel}\` if \`.${
60+
channel
61+
}\` is called`, () => {
6062
client[channel](message);
6163
expect(
62-
spies[`${channel}Spy`] && spies[`${channel}Spy`].called,
64+
spies[`${channel}Spy`] && spies[`${channel}Spy`].called,
6365
`Expected ${channel} to ${shouldLog ? '' : 'not'} log`
64-
).to.be[shouldLog ? 'true' : 'false'];
66+
).to.be[shouldLog ? 'true' : 'false'];
6567
});
6668
}
6769

0 commit comments

Comments
 (0)