@@ -34,25 +34,25 @@ interface V4SignedURLConformanceTestCases {
34
34
}
35
35
36
36
interface MethodAction {
37
- [ key : string ] : 'read' | 'resumable' | 'write' | 'delete' ;
37
+ [ key : string ] : 'read' | 'resumable' | 'write' | 'delete' ;
38
38
}
39
39
40
40
const testFile = fs . readFileSync (
41
- path . join (
42
- __dirname ,
43
- '../../conformance-test/test-data/v4SignedUrl.json' ,
44
- ) ,
45
- 'utf-8' ) ;
41
+ path . join ( __dirname , '../../conformance-test/test-data/v4SignedUrl.json' ) ,
42
+ 'utf-8'
43
+ ) ;
46
44
47
45
const testCases = JSON . parse ( testFile ) as V4SignedURLConformanceTestCases [ ] ;
48
46
49
47
const SERVICE_ACCOUNT = path . join (
50
- __dirname , '../../conformance-test/fixtures/signing-service-account.json' ) ;
48
+ __dirname ,
49
+ '../../conformance-test/fixtures/signing-service-account.json'
50
+ ) ;
51
51
52
52
describe ( 'v4 signed url' , ( ) => {
53
53
const storage = new Storage ( { keyFilename : SERVICE_ACCOUNT } ) ;
54
54
55
- testCases . forEach ( ( testCase ) => {
55
+ testCases . forEach ( testCase => {
56
56
it ( testCase . description , async function ( ) {
57
57
// v4 signed URL does not support Bucket operations (list bucket, etc) yet
58
58
// Remove this conditional once it is supported.
@@ -61,8 +61,11 @@ describe('v4 signed url', () => {
61
61
return ;
62
62
}
63
63
64
- const NOW =
65
- dateFormat . parse ( testCase . timestamp , 'YYYYMMDD HHmmss ' , true ) ;
64
+ const NOW = dateFormat . parse (
65
+ testCase . timestamp ,
66
+ 'YYYYMMDD HHmmss ' ,
67
+ true
68
+ ) ;
66
69
const fakeTimer = sinon . useFakeTimers ( NOW ) ;
67
70
68
71
const bucket = storage . bucket ( testCase . bucket ) ;
0 commit comments