Skip to content

Commit 2868369

Browse files
committed
Update test to expect undefined encoding when not specified
1 parent 8bff732 commit 2868369

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/sandbox-container/tests/handlers/file-handler.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ describe('FileHandler', () => {
9696
});
9797
});
9898

99-
it('should use default encoding when not specified', async () => {
99+
it('should pass undefined encoding when not specified', async () => {
100100
const readFileData = {
101101
path: '/tmp/test.txt'
102102
// encoding not specified
@@ -123,7 +123,7 @@ describe('FileHandler', () => {
123123
expect(responseData.timestamp).toBeDefined();
124124

125125
expect(mockFileService.readFile).toHaveBeenCalledWith('/tmp/test.txt', {
126-
encoding: 'utf-8'
126+
encoding: undefined
127127
});
128128
});
129129

0 commit comments

Comments
 (0)