Π·Π΅ΡΠΊΠ°Π»ΠΎ ΠΈΠ· https://github.com/Unity-Technologies/electron.git
π· Cleanup on Windows only
This commit is contained in:
Π ΠΎΠ΄ΠΈΡΠ΅Π»Ρ
d519bfc5fb
ΠΠΎΠΌΠΌΠΈΡ
e6cbb2f3aa
|
@ -521,14 +521,16 @@ describe('app module', () => {
|
|||
})
|
||||
|
||||
after(function (done) {
|
||||
const protocolKey = new Winreg({
|
||||
hive: Winreg.HKCU,
|
||||
key: `\\Software\\Classes\\${protocol}`
|
||||
})
|
||||
if (process.platform === 'win32') {
|
||||
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())
|
||||
// The last test leaves the registry dirty,
|
||||
// delete the protocol key for those of us who test at home
|
||||
protocolKey.destroy(() => done())
|
||||
}
|
||||
})
|
||||
|
||||
beforeEach(() => {
|
||||
|
|
ΠΠ°Π³ΡΡΠ·ΠΊΠ°β¦
Π‘ΡΡΠ»ΠΊΠ° Π² Π½ΠΎΠ²ΠΎΠΉ Π·Π°Π΄Π°ΡΠ΅