debt - do not use deprecated Buffer() ctor

This commit is contained in:
Benjamin Pasero
2018-08-22 10:42:36 +02:00
parent 0bae86799f
commit 6607a81c12
7 changed files with 8 additions and 8 deletions

View File

@@ -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`);