From de81f63d27121edd0c3a3279741824170babb97f Mon Sep 17 00:00:00 2001 From: HamletDRC Date: Fri, 30 Sep 2016 11:02:25 +0200 Subject: [PATCH] grunt create-rule now generates test to correct location --- Gruntfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index 948003531..fef2fe0c4 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -431,7 +431,7 @@ module.exports = function(grunt) { var ruleFile = camelCase(ruleName) + 'Rule'; var sourceFileName = './src/' + ruleFile + '.ts'; - var testFileName = './tests/' + ruleFile.charAt(0).toUpperCase() + ruleFile.substr(1) + 'Tests.ts'; + var testFileName = './src/tests/' + ruleFile.charAt(0).toUpperCase() + ruleFile.substr(1) + 'Tests.ts'; var walkerName = ruleFile.charAt(0).toUpperCase() + ruleFile.substr(1) + 'Walker'; var ruleTemplateText = grunt.file.read('./templates/rule.snippet', {encoding: 'UTF-8'});