Skip to content

Commit

Permalink
Minor 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 Apr 14, 2016
1 parent fac3975 commit 011e26f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/crash_reporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ CrashReporter.submit = function(report) {

CrashReporter.post(labels, report)
.then(() => {
logs.info('Done !');
logs.info('Crash Reported: http://crash-reporter.tessel.io/');
})
.catch(error => {
logs.err('Error submitting crash report', error);
Expand Down
8 changes: 4 additions & 4 deletions test/unit/crash-reporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,10 @@ exports['CrashReporter.submit'] = {
var args = this.crPost.lastCall.args;
test.equal(this.crPost.callCount, 1);
test.equal(typeof args[0], 'string');
test.ok(args[0].indexOf('CLI version') > 0, 'Label CLI version should be present');
test.ok(args[0].indexOf('Node version') > 0, 'Label Node version should be present');
test.ok(args[0].indexOf('OS platform') > 0, 'Label OS platform should be present');
test.ok(args[0].indexOf('OS release') > 0, 'Label OS release should be present');
test.ok(args[0].includes('CLI version'), 'Label CLI version should be present');
test.ok(args[0].includes('Node version'), 'Label Node version should be present');
test.ok(args[0].includes('OS platform'), 'Label OS platform should be present');
test.ok(args[0].includes('OS release'), 'Label OS release should be present');
test.equal(args[1], report);
test.done();
});
Expand Down

0 comments on commit 011e26f

Please sign in to comment.