fix: return path from netLog.stopLogging (#21985)
This commit is contained in:
parent
a58bc42ed0
commit
1c6d8f5af6
2 changed files with 4 additions and 2 deletions
|
@ -71,7 +71,8 @@ describe('netLog module', () => {
|
|||
|
||||
expect(testNetLog().currentlyLoggingPath).to.equal(dumpFileDynamic)
|
||||
|
||||
await testNetLog().stopLogging()
|
||||
const path = await testNetLog().stopLogging()
|
||||
expect(path).to.equal(dumpFileDynamic)
|
||||
|
||||
expect(fs.existsSync(dumpFileDynamic)).to.be.true('currently logging')
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue