Skip to content

Commit f8e6671

Browse files
committed
yarn format:fix
1 parent 9bee7df commit f8e6671

File tree

2 files changed

+16
-15
lines changed

2 files changed

+16
-15
lines changed

spec/main.spec.ts

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ describe('main', () => {
6262
expect(typeof context.eventId).to.equal('string');
6363
expect(context.resource.service).to.equal('service');
6464
expect(
65-
/ref\/wildcard[1-9]\/nested\/anotherWildcard[1-9]/.test(
66-
context.resource.name
67-
)
65+
/ref\/wildcard[1-9]\/nested\/anotherWildcard[1-9]/.test(
66+
context.resource.name
67+
)
6868
).to.be.true;
6969
expect(context.eventType).to.equal('event');
7070
expect(Date.parse(context.timestamp)).to.be.greaterThan(0);
@@ -122,10 +122,10 @@ describe('main', () => {
122122
it('should throw when passed invalid options', () => {
123123
const wrapped = wrap(constructBackgroundCF());
124124
expect(() =>
125-
wrapped('data', {
126-
auth: { uid: 'abc' },
127-
isInvalid: true,
128-
} as any)
125+
wrapped('data', {
126+
auth: { uid: 'abc' },
127+
isInvalid: true,
128+
} as any)
129129
).to.throw();
130130
});
131131

@@ -252,23 +252,22 @@ describe('main', () => {
252252
auth: { uid: 'abc' },
253253
app: { appId: 'efg' },
254254
instanceIdToken: '123',
255-
rawRequest: { body: 'hello' }
255+
rawRequest: { body: 'hello' },
256256
}).context;
257257
expect(context.auth).to.deep.equal({ uid: 'abc' });
258258
expect(context.app).to.deep.equal({ appId: 'efg' });
259259
expect(context.instanceIdToken).to.equal('123');
260-
expect(context.rawRequest).to.deep.equal({ body: 'hello'});
260+
expect(context.rawRequest).to.deep.equal({ body: 'hello' });
261261
});
262262

263263
it('should throw when passed invalid options', () => {
264264
expect(() =>
265-
wrappedCF('data', {
266-
auth: { uid: 'abc' },
267-
isInvalid: true,
268-
} as any)
265+
wrappedCF('data', {
266+
auth: { uid: 'abc' },
267+
isInvalid: true,
268+
} as any)
269269
).to.throw();
270270
});
271-
272271
});
273272
});
274273

src/providers/firestore.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ import { testApp } from '../app';
2828

2929
import * as http from 'http';
3030

31-
function dateToTimestampProto(timeString?: string): { seconds: number, nanos: number } | undefined {
31+
function dateToTimestampProto(
32+
timeString?: string
33+
): { seconds: number; nanos: number } | undefined {
3234
if (typeof timeString === 'undefined') {
3335
return;
3436
}

0 commit comments

Comments
 (0)