Permalink
Browse files

Hardcode the fixtureContentType option.

  • Loading branch information...
1 parent 11f212d commit 4190ea76c83ba8021a943b2691a0bb7202666f4a @tobie committed Sep 24, 2010
Showing with 2 additions and 4 deletions.
  1. +1 −3 lib/config.js
  2. +1 −1 lib/generator.js
View
@@ -5,7 +5,7 @@ var fs = require('fs'),
var JSON_EXPORTS = ["port", "outputDir", "testsDir", "fixturesDir",
"templatesDir", "templateExtension", "testFilePattern",
"testNameReplacement", "testFileReplacement",
- "fixtureContentTypes", "resultsHandler"];
+ "resultsHandler"];
var DEFAULT_TEMPLATES_DIR = path.join(__dirname, '..', 'templates');
@@ -21,7 +21,6 @@ var DEFAULTS = {
testFilePattern: '(.*?)_test\\.js$',
testNameReplacement: '$1',
testFileReplacement: '$1_test.js',
- fixtureContentTypes: ['html', 'css', 'js'],
resultsHandler: 'console'
};
@@ -107,7 +106,6 @@ function createConfig(options) {
}
},
- fixtureContentTypes: _proxy('fixtureContentTypes'),
testFilePattern: _proxy('testFilePattern'),
testNameReplacement: _proxy('testNameReplacement'),
testFileReplacement: _proxy('testFileReplacement'),
View
@@ -71,7 +71,7 @@ function createGenerator(name, config) {
}
function _writeTestFixtures(callback) {
- async.forEach(config.fixtureContentTypes, function(ext, i, _, cb) {
+ async.forEach(['js', 'css', 'html'], function(ext, i, _, cb) {
var output = path.join(testFixturesDir, 'fixtures.' + ext),
input = path.join(TEMPLATES_DIR, ext + '.mustache');
_writeFromTemplate(input, output, cb);

0 comments on commit 4190ea7

Please sign in to comment.