👷 Cleanup on Windows only

This commit is contained in:
Felix Rieseberg 2017-12-05 12:14:19 -08:00
parent d519bfc5fb
commit e6cbb2f3aa

View file

@ -521,6 +521,7 @@ describe('app module', () => {
}) })
after(function (done) { after(function (done) {
if (process.platform === 'win32') {
const protocolKey = new Winreg({ const protocolKey = new Winreg({
hive: Winreg.HKCU, hive: Winreg.HKCU,
key: `\\Software\\Classes\\${protocol}` key: `\\Software\\Classes\\${protocol}`
@ -529,6 +530,7 @@ describe('app module', () => {
// The last test leaves the registry dirty, // The last test leaves the registry dirty,
// delete the protocol key for those of us who test at home // delete the protocol key for those of us who test at home
protocolKey.destroy(() => done()) protocolKey.destroy(() => done())
}
}) })
beforeEach(() => { beforeEach(() => {