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 Dec 15, 2022. It is now read-only.
constitem=triggerMenu({url: 'https://github.com'},{}).items.find(i=>i.label==='Open on GitHub');
it("rejects the promise when 'Open on GitHub' fails",asyncfunction(){
82
-
sinon.stub(shell,'openExternal').callsArgWith(2,newError("I don't feel like it"));
82
+
sinon.stub(shell,'openExternal').throws(newError("I don't feel like it"));
83
83
84
84
constitem=triggerMenu({url: 'https://github.com'},{}).items.find(i=>i.label==='Open on GitHub');
85
85
awaitassert.isRejected(item.click());
86
86
assert.isFalse(reporterProxy.addEvent.called);
87
87
});
88
88
89
89
it('opens a prepopulated abuse-reporting link with "Report abuse"',asyncfunction(){
0 commit comments