diff --git a/app/index.js b/app/index.js index 6b315bf..a17c382 100755 --- a/app/index.js +++ b/app/index.js @@ -268,7 +268,7 @@ module.exports = yeoman.generators.Base.extend({ this.template('lib/name.js', 'lib/' + this.slugname + '.js'); this.mkdir('test'); - this.template('test/name_test.js', 'test/' + this.slugname + '_test.js'); + this.template('test/module.spec.js', 'test/module.spec.js'); this.mkdir('example'); this.template('example/simple.js', 'example/simple.js'); diff --git a/app/templates/test/name_test.js b/app/templates/test/module.spec.js similarity index 100% rename from app/templates/test/name_test.js rename to app/templates/test/module.spec.js diff --git a/test/test-creation.js b/test/test-creation.js index 57ae9e1..7596ee0 100755 --- a/test/test-creation.js +++ b/test/test-creation.js @@ -22,7 +22,7 @@ describe('node generator', function () { it('creates expected files', function (done) { var expectedFiles = [ 'lib/mymodule.js', - 'test/mymodule_test.js', + 'test/module.spec.js', 'example/simple.js', '.gitignore', '.jshintrc', @@ -60,7 +60,7 @@ describe('node generator', function () { it('creates expected files', function (done) { var expectedFiles = [ 'lib/mymodule.js', - 'test/mymodule_test.js', + 'test/module.spec.js', 'example/simple.js', '.gitignore', '.jshintrc', @@ -99,7 +99,7 @@ describe('node generator', function () { it('generator with releaseModule', function (done) { var expectedFiles = [ 'lib/mymodule.js', - 'test/mymodule_test.js', + 'test/module.spec.js', 'example/simple.js', '.gitignore', '.jshintrc', @@ -137,7 +137,7 @@ describe('node generator', function () { it('generator with jscsModule', function (done) { var expectedFiles = [ 'lib/mymodule.js', - 'test/mymodule_test.js', + 'test/module.spec.js', 'example/simple.js', '.gitignore', '.jshintrc', @@ -243,7 +243,7 @@ describe('node generator', function () { it('generator with istanbul', function (done) { var expectedFiles = [ 'lib/mymodule.js', - 'test/mymodule_test.js', + 'test/module.spec.js', 'example/simple.js', '.gitignore', '.jshintrc', @@ -284,7 +284,7 @@ describe('node generator', function () { it('generator with istanbul and coveralls', function (done) { var expectedFiles = [ 'lib/mymodule.js', - 'test/mymodule_test.js', + 'test/module.spec.js', 'example/simple.js', '.gitignore', '.jshintrc',