Skip to content

Commit 67f7af8

Browse files
committed
atom-spec: Sort files before generating js spec; bump the ver to 0.0.15
1 parent a8aceed commit 67f7af8

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

index.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ function generateAtomSpec(testFiles, grammarFile, options) {
361361
var grammar = compileGrammar(grammarFile, options.add_syntaxes),
362362
specLines = [];
363363

364-
console.log(grammar.scopeName);
364+
testFiles.sort();
365365

366366
for (var fi = 0; fi < testFiles.length; fi++) {
367367
var fileName = testFiles[fi],
@@ -420,10 +420,11 @@ function generateAtomSpec(testFiles, grammarFile, options) {
420420
];
421421

422422
for (i = 0; i < specLines.length; i++) {
423+
buf.push('');
423424
buf.push(' it(' + JSON.stringify(specLines[i].file) + ', ');
424-
buf.push(' function() {')
425-
buf.push(' ' + specLines[i].lines.join('\n '));
426-
buf.push(' });');
425+
buf.push(' function() {')
426+
buf.push(' ' + specLines[i].lines.join('\n '));
427+
buf.push(' });');
427428
}
428429

429430
buf.push('});\n');

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "syntaxdev",
3-
"version": "0.0.14",
3+
"version": "0.0.15",
44
"description": "Unit testing framework for TextMate/Sublime/Atom syntaxes.",
55
"main": "index.js",
66
"author": "Yury Selivanov <yury@magic.io>",

0 commit comments

Comments
 (0)