mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
👷 Cleanup after the test
This commit is contained in:
@@ -520,6 +520,17 @@ describe('app module', () => {
|
||||
}
|
||||
})
|
||||
|
||||
after(function (done) {
|
||||
const protocolKey = new Winreg({
|
||||
hive: Winreg.HKCU,
|
||||
key: `\\Software\\Classes\\${protocol}`
|
||||
})
|
||||
|
||||
// The last test leaves the registry dirty,
|
||||
// delete the protocol key for those of us who test at home
|
||||
protocolKey.destroy(() => done())
|
||||
})
|
||||
|
||||
beforeEach(() => {
|
||||
app.removeAsDefaultProtocolClient(protocol)
|
||||
app.removeAsDefaultProtocolClient(protocol, updateExe, processStartArgs)
|
||||
|
||||
Reference in New Issue
Block a user