Skip to content

Commit 0a0fb3a

Browse files
committed
Updated formatting
1 parent 96ffdd1 commit 0a0fb3a

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

packages/database/test/exp/integration.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ describe('Database@exp Tests', () => {
266266
expect(() => ref(db)).to.throw('Cannot call ref on a deleted database.');
267267
defaultApp = undefined;
268268
});
269-
269+
270270
it('waits until the database is online to resolve the get request', async () => {
271271
const db = getDatabase(defaultApp);
272272
const r = ref(db, 'foo2');

packages/util/src/promise.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,16 @@
1515
* limitations under the License.
1616
*/
1717

18-
import { Deferred } from "./deferred";
18+
import { Deferred } from './deferred';
1919

2020
/**
2121
* Rejects if the given promise doesn't resolve in timeInMS milliseconds.
2222
* @internal
2323
*/
24-
export function promiseWithTimeout<T>(promise: Promise<T>, timeInMS = 2000): Promise<T> {
24+
export function promiseWithTimeout<T>(
25+
promise: Promise<T>,
26+
timeInMS = 2000
27+
): Promise<T> {
2528
const deferredPromise = new Deferred<T>();
2629
setTimeout(() => deferredPromise.reject('timeout!'), timeInMS);
2730
promise.then(deferredPromise.resolve, deferredPromise.reject);

0 commit comments

Comments
 (0)