File tree 5 files changed +12
-8
lines changed 5 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 14
14
"test" : " run-s lint test:unit" ,
15
15
"integration" : " run-s build test:integration" ,
16
16
"test:unit" : " mocha test/unit/*.spec.ts --require ts-node/register" ,
17
- "test:integration" : " mocha test/integration/*.ts --slow 5000 --timeout 5000 --require ts-node/register" ,
17
+ "test:integration" : " mocha test/integration/*.ts --slow 5000 --timeout 20000 --require ts-node/register" ,
18
18
"test:coverage" : " nyc npm run test:unit" ,
19
19
"lint:src" : " tslint --format stylish -p tsconfig.json" ,
20
20
"lint:unit" : " tslint -c tslint-test.json --format stylish test/unit/*.ts test/unit/**/*.ts" ,
Original file line number Diff line number Diff line change @@ -220,7 +220,7 @@ describe('admin.auth', () => {
220
220
return admin . auth ( ) . verifyIdToken ( idToken , true )
221
221
. should . eventually . be . fulfilled ;
222
222
} ) ;
223
- } ) . timeout ( 10000 ) ;
223
+ } ) ;
224
224
225
225
it ( 'setCustomUserClaims() sets claims that are accessible via user\'s ID token' , ( ) => {
226
226
// Set custom claims on the user.
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ describe('admin.firestore', () => {
65
65
. then ( ( snapshot ) => {
66
66
expect ( snapshot . exists ) . to . be . false ;
67
67
} ) ;
68
- } ) . timeout ( 5000 ) ;
68
+ } ) ;
69
69
70
70
it ( 'admin.firestore.FieldValue.serverTimestamp() provides a server-side timestamp' , ( ) => {
71
71
const expected : any = clone ( mountainView ) ;
@@ -81,7 +81,7 @@ describe('admin.firestore', () => {
81
81
return reference . delete ( ) ;
82
82
} )
83
83
. should . eventually . be . fulfilled ;
84
- } ) . timeout ( 5000 ) ;
84
+ } ) ;
85
85
86
86
it ( 'admin.firestore.CollectionReference type is defined' , ( ) => {
87
87
expect ( typeof admin . firestore . CollectionReference ) . to . be . not . undefined ;
@@ -132,7 +132,7 @@ describe('admin.firestore', () => {
132
132
return Promise . all ( promises ) ;
133
133
} )
134
134
. should . eventually . be . fulfilled ;
135
- } ) . timeout ( 5000 ) ;
135
+ } ) ;
136
136
137
137
it ( 'admin.firestore.setLogFunction() enables logging for the Firestore module' , ( ) => {
138
138
const logs = [ ] ;
@@ -147,5 +147,5 @@ describe('admin.firestore', () => {
147
147
. then ( ( result ) => {
148
148
expect ( logs . length ) . greaterThan ( 0 ) ;
149
149
} ) ;
150
- } ) . timeout ( 5000 ) ;
150
+ } ) ;
151
151
} ) ;
Original file line number Diff line number Diff line change @@ -31,13 +31,13 @@ describe('admin.storage', () => {
31
31
const bucket : Bucket = admin . storage ( ) . bucket ( ) ;
32
32
return verifyBucket ( bucket , 'storage().bucket()' )
33
33
. should . eventually . be . fulfilled ;
34
- } ) . timeout ( 5000 ) ;
34
+ } ) ;
35
35
36
36
it ( 'bucket(string) returns a handle to the specified bucket' , ( ) => {
37
37
const bucket : Bucket = admin . storage ( ) . bucket ( projectId + '.appspot.com' ) ;
38
38
return verifyBucket ( bucket , 'storage().bucket(string)' )
39
39
. should . eventually . be . fulfilled ;
40
- } ) . timeout ( 5000 ) ;
40
+ } ) ;
41
41
42
42
it ( 'bucket(non-existing) returns a handle which can be queried for existence' , ( ) => {
43
43
const bucket : Bucket = admin . storage ( ) . bucket ( 'non.existing' ) ;
Original file line number Diff line number Diff line change @@ -26,6 +26,10 @@ const serviceAccount = require('../mock.key.json');
26
26
describe ( 'Init App' , ( ) => {
27
27
const app : admin . app . App = initApp ( serviceAccount , 'TestApp' ) ;
28
28
29
+ after ( ( ) => {
30
+ return app . delete ( ) ;
31
+ } ) ;
32
+
29
33
it ( 'Should return an initialized App' , ( ) => {
30
34
expect ( app . name ) . to . equal ( 'TestApp' ) ;
31
35
} ) ;
You can’t perform that action at this time.
0 commit comments