Skip to content

Commit ffd2057

Browse files
committed
test: add bytes method to mock Gaxios response in acl and headers tests
1 parent e366cc2 commit ffd2057

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

handwritten/storage/test/acl.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,7 @@ describe('storage/acl', () => {
392392
arrayBuffer: async () => new ArrayBuffer(0),
393393
text: async () => '',
394394
json: async () => ({}),
395+
bytes: async () => new Uint8Array(),
395396
clone: () => gaxiosResponse,
396397
blob: async () => new Blob([]),
397398
formData: async () => new FormData(),

handwritten/storage/test/headers.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ describe('headers', () => {
5353
json: async () => ({}),
5454
clone: () => gaxiosResponse,
5555
blob: async () => new Blob([]),
56+
bytes: async () => new Uint8Array(),
5657
formData: async () => new FormData(),
5758
};
5859
storageTransport = new StorageTransport({

0 commit comments

Comments
 (0)