From d050a21027a26878261b96832c3e44aa685a0fde Mon Sep 17 00:00:00 2001 From: Stefan Buck Date: Mon, 6 Oct 2014 11:42:51 +0200 Subject: [PATCH] This PR will rename the test file to module.spec.js --- app/index.js | 2 +- app/templates/test/{name_test.js => module.spec.js} | 0 test/test-creation.js | 12 ++++++------ 3 files changed, 7 insertions(+), 7 deletions(-) rename app/templates/test/{name_test.js => module.spec.js} (100%) 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',