Skip to content

Commit

Permalink
Lint nits
Browse files Browse the repository at this point in the history
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
  • Loading branch information
rwaldron committed Mar 28, 2017
1 parent 6c3d90c commit 1e460f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/unit/crash-reporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ exports['CrashReporter.onerror'] = {

logsAndReturnsPromise(test) {
test.expect(2);
CrashReporter.onerror(new Error('Whatever')).then(stack => {
CrashReporter.onerror(new Error('Whatever')).then(() => {
test.equal(this.error.lastCall.args[0], 'Detected CLI crash');
test.equal(this.error.lastCall.args[1].toString(), 'Error: Whatever');
test.done();
Expand All @@ -656,11 +656,11 @@ exports['CrashReporter.prompt'] = {

// Because these are stored as strings...
this.prefValue = 'true';
this.prefRead = this.sandbox.stub(Preferences, 'read', (key, defaultValue) => {
this.prefRead = this.sandbox.stub(Preferences, 'read', () => {
return Promise.resolve(this.prefValue);
});
this.selected = true;
this.menuPrompt = this.sandbox.stub(Menu, 'prompt', (config) => {
this.menuPrompt = this.sandbox.stub(Menu, 'prompt', () => {
return Promise.resolve({
selected: this.selected
});
Expand Down

0 comments on commit 1e460f4

Please sign in to comment.