You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
squirrel-update-spec not really testing desktop shortcut #8789
It looks like test keeps the desktop shortcut deleted on updates if it was previously deleted in squirrel-update-spec is not really doing its job.
We tried removing a meaningful bit of functionality in code under test (see this commit) and the test still passes.
Now having a look at possible cause. Probably that's because the ChildProcess is being mocked too muchhere. Or, maybe there's no test really checking that desktop shortcut is created in the first place? (otherwise expectation on line #82 should fail).
Uhm. Taking my word back, maybe that's a false problem. In this other commit I just skipped the check for existing shortcut, so that it gets always created. Result: the test (correctly) fails.
This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!
Activity
winstliu commentedon Sep 15, 2015
I can confirm that the desktop shortcut is in fact coming back every update, and it is pretty annoying.
BrainCrumbz commentedon Sep 15, 2015
Although - given the overlap - I'd prefer to take care of this after that PR #8780 gets (?) merged.
BrainCrumbz commentedon Sep 15, 2015
Uhm. Taking my word back, maybe that's a false problem. In this other commit I just skipped the check for existing shortcut, so that it gets always created. Result: the test (correctly) fails.
BrainCrumbz commentedon Sep 15, 2015
Even refactoring spec to make any assertion explicit as in here, desktop shortcut tests still pass.
BrainCrumbz commentedon Sep 15, 2015
Just created PR #8793 to make desktop shortcut tests intent more clear (and they all still pass)
winstliu commentedon Sep 24, 2015
Closing in favor of #5323.
lock commentedon Jan 20, 2019
This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!