Skip to content

Commit ee674b8

Browse files
author
benholloway
committed
split added javascript and css specs in order to run the test spec properly
1 parent d6aa01d commit ee674b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/helpers/jasmine-matchers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ function getHelpMatcher(regexp) {
7373
compare: function compare(buffer, expectError) {
7474
var text = buffer.toString();
7575
var lastLine = text.split(/\n/g).filter(Boolean).pop();
76-
var hasError = /^\s*\[Error\:[^\]]*]/.test(lastLine);
76+
var hasError = /^\s*\[Error\:[^\]]*]|^\s*Unknown argument\:.*$/.test(lastLine); // error or unknown argument
7777
var message =
7878
!(regexp.test(text)) ? 'Help message does not match expectation' :
7979
(hasError !== expectError) ? ['Help', (expectError ? 'expected' : 'did not expect'), 'an error',

0 commit comments

Comments
 (0)