Skip to content

Commit b5bf3ff

Browse files
committed
add check for xdescribe and xfit + add syntax test to npm test
1 parent 5dbf065 commit b5bf3ff

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"citest-jasmine": "karma start test/jasmine/karma.ciconf.js",
3333
"test-image": "./tasks/test_image.sh",
3434
"test-syntax": "node test/syntax_test.js",
35-
"test": "npm run test-jasmine && npm test-image",
35+
"test": "npm run test-jasmine && npm test-image && npm test-syntax",
3636
"start-test_dashboard": "node devtools/test_dashboard/server.js",
3737
"start-image_viewer": "node devtools/image_viewer/server.js",
3838
"baseline": "./tasks/baseline.sh",

test/syntax_test.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ var glob = require('glob');
66

77
var constants = require('../tasks/util/constants');
88

9-
var focusGlobals = ['fdescribe', 'fit'];
9+
var focusGlobals = ['fdescribe', 'fit', 'xdescribe', 'xit'];
1010
var logs = [];
1111

1212

@@ -19,12 +19,13 @@ glob(path.join(constants.pathToJasmineTests, '**/*.js'), function(err, files) {
1919
logs.push([
2020
path.basename(file),
2121
'[line ' + node.loc.start.line + '] :',
22-
'contains either a *fdescribe* or a *fit* block.'
22+
'contains either a *fdescribe*, *fit*,',
23+
'*xdescribe* or *xit* block.'
2324
].join(' '));
2425
}
2526
});
2627

2728
});
2829

29-
if(logs.length) throw new Error(logs.join('\n'));
30+
if(logs.length) throw new Error('\n' + logs.join('\n') + '\n');
3031
});

0 commit comments

Comments
 (0)