Skip to content

Commit

Permalink
Fix runStr parameter to improve unity
Browse files Browse the repository at this point in the history
  • Loading branch information
HyunSangHan committed Mar 2, 2020
1 parent 4c7175b commit 974b064
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion test/reporters/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ function createRunnerFunction(runStr, ifStr1, ifStr2, ifStr3, arg1, arg2) {
callback();
}
};
case 'test end fail':
case 'end fail':
test = arg1;
var error = arg2;
return function(event, callback) {
Expand Down
16 changes: 8 additions & 8 deletions test/reporters/tap.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ describe('TAP reporter', function() {
message: expectedErrorMessage
};
var runner = createMockRunner(
'test end fail',
'end fail',
EVENT_TEST_END,
EVENT_TEST_FAIL,
null,
Expand Down Expand Up @@ -163,7 +163,7 @@ describe('TAP reporter', function() {
stack: expectedStack
};
var runner = createMockRunner(
'test end fail',
'end fail',
EVENT_TEST_END,
EVENT_TEST_FAIL,
null,
Expand Down Expand Up @@ -194,7 +194,7 @@ describe('TAP reporter', function() {
message: expectedErrorMessage
};
var runner = createMockRunner(
'test end fail',
'end fail',
EVENT_TEST_END,
EVENT_TEST_FAIL,
null,
Expand Down Expand Up @@ -230,7 +230,7 @@ describe('TAP reporter', function() {
var test = createTest();
var error = {};
var runner = createMockRunner(
'test end fail',
'end fail',
EVENT_TEST_END,
EVENT_TEST_FAIL,
null,
Expand Down Expand Up @@ -390,7 +390,7 @@ describe('TAP reporter', function() {
message: expectedErrorMessage
};
var runner = createMockRunner(
'test end fail',
'end fail',
EVENT_TEST_END,
EVENT_TEST_FAIL,
null,
Expand Down Expand Up @@ -430,7 +430,7 @@ describe('TAP reporter', function() {
stack: expectedStack
};
var runner = createMockRunner(
'test end fail',
'end fail',
EVENT_TEST_END,
EVENT_TEST_FAIL,
null,
Expand Down Expand Up @@ -464,7 +464,7 @@ describe('TAP reporter', function() {
message: expectedErrorMessage
};
var runner = createMockRunner(
'test end fail',
'end fail',
EVENT_TEST_END,
EVENT_TEST_FAIL,
null,
Expand Down Expand Up @@ -504,7 +504,7 @@ describe('TAP reporter', function() {
var test = createTest();
var error = {};
var runner = createMockRunner(
'test end fail',
'end fail',
EVENT_TEST_END,
EVENT_TEST_FAIL,
null,
Expand Down

0 comments on commit 974b064

Please sign in to comment.