Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Commit a2c7a4b

Browse files
NickTomlinjuliemr
authored andcommitted
fix(config): Do not sort spec keys
Fixes #2928
1 parent 3d12d89 commit a2c7a4b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/configParser.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ ConfigParser.getSpecs = function(config) {
151151
return config.specs;
152152
}
153153

154-
Object.keys(config.suites || {}).sort().forEach(function(suite) {
154+
Object.keys(config.suites || {}).forEach(function(suite) {
155155
union(specs, makeArray(config.suites[suite]));
156156
});
157157
return specs;

spec/unit/config_test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ describe('the config parser', function() {
5151

5252
var specs = new ConfigParser.getSpecs(config);
5353

54-
expect(specs).toEqual(['bar.spec.js', 'foo.spec.js']);
54+
expect(specs).toEqual(['foo.spec.js', 'bar.spec.js']);
5555
});
5656
});
5757

0 commit comments

Comments
 (0)