Skip to content

Commit

Permalink
(api) support for /.test.js$/ filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudhead committed Feb 21, 2011
1 parent 93da10b commit 1ddf5b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/vows
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ try {
var coffee = require('coffee-script');
require.registerExtension('.coffee', function (content) { return coffee.compile(content) });
fileExt = /\.(js|coffee)$/;
specFileExt = /-(test|spec)\.(js|coffee)$/;
specFileExt = /[.-](test|spec)\.(js|coffee)$/;
} catch (_) {
fileExt = /\.js$/;
specFileExt = /-(test|spec)\.js$/;
specFileExt = /[.-](test|spec)\.js$/;
}

var inspect = require('eyes').inspector({
Expand Down

0 comments on commit 1ddf5b1

Please sign in to comment.