Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Don't use deprecated Buffer #2724

Merged
merged 1 commit into from
Oct 26, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/git-strategies.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,7 @@ import * as reporterProxy from '../lib/reporter-proxy';
it('returns an empty diff', async function() {
const workingDirPath = await cloneRepository('three-files');
const git = createTestStrategy(workingDirPath);
const data = new Buffer(10);
const data = Buffer.alloc(10);
for (let i = 0; i < 10; i++) {
data.writeUInt8(i + 200, i);
}
Expand Down