Skip to content

Commit

Permalink
(error) test return
Browse files Browse the repository at this point in the history
  • Loading branch information
Unitech committed Feb 9, 2017
1 parent c828a6d commit 499522f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/notify.mocha.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ describe('Notify exceptions', function() {

should.exist(ret.stack);
should.exist(ret.message);

ret.stack.line.should.eql('ok');
ret.stack.env.should.eql('sisi');
done();
Expand All @@ -87,7 +86,6 @@ describe('Notify exceptions', function() {

should.exist(ret.stack);
should.exist(ret.message);

done();
});

Expand Down Expand Up @@ -161,6 +159,9 @@ describe('Notify exceptions', function() {
app.once('message', function(data) {
data.type.should.eql('axm:option:configuration');
app.once('message', function(data) {
should.exist(data.data.stackframes);
should.exist(data.data.stackframes[0].file_name);
should.exist(data.data.stackframes[0].line_number);
data.type.should.eql('process:exception');
data.data.message.should.eql('global error');
process.kill(app.pid);
Expand Down

0 comments on commit 499522f

Please sign in to comment.