mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-30 05:21:08 +01:00
debt - do not use deprecated Buffer() ctor
This commit is contained in:
@@ -273,7 +273,7 @@ describe('Test', () => {
|
||||
|
||||
const app = this.app as Application;
|
||||
const raw = await app.capturePage();
|
||||
const buffer = new Buffer(raw, 'base64');
|
||||
const buffer = Buffer.from(raw, 'base64');
|
||||
|
||||
const name = this.currentTest.fullTitle().replace(/[^a-z0-9\-]/ig, '_');
|
||||
const screenshotPath = path.join(screenshotsPath, `${name}.png`);
|
||||
|
||||
Reference in New Issue
Block a user