Skip to content

Commit 4d4b3b2

Browse files
committed
test: fix files.service.test replacing Buffer.alloc with Uint8Array
1 parent 2b4463f commit 4d4b3b2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/core/services/files/files.service.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ describe('File Service', () => {
254254
const createDir = (dir) => mkdirSync(dir);
255255
const isDirEmpty = (dir) => readdirSync(dir).length === 0;
256256
const createFileWithSize = (filename, mb) =>
257-
writeFileSync(filename, Buffer.alloc(1024 * 1024 * mb));
257+
writeFileSync(filename, new Uint8Array(1024 * 1024 * mb));
258258

259259
beforeAll(() => {
260260
const getOS = () => process.platform;

0 commit comments

Comments
 (0)