feat: [contentTracing] allow calling stopTracing() with no arguments (#18411)

This commit is contained in:
Jeremy Apthorp 2019-05-28 14:15:42 -07:00 committed by GitHub
parent 1a609f0caf
commit 815b9d7707
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 137 additions and 62 deletions

View file

@ -132,5 +132,10 @@ describe('contentTracing', () => {
const resultFilePath = await record(/* options */ {}, /* outputFilePath */ '')
expect(resultFilePath).to.be.a('string').that.is.not.empty()
})
it('creates a temporary file when no path is passed', async function () {
const resultFilePath = await record(/* options */ {}, /* outputFilePath */ undefined)
expect(resultFilePath).to.be.a('string').that.is.not.empty()
})
})
})