Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Removed nodeunit test cases
  • Loading branch information
vkadam committed Jan 27, 2015
1 parent c0a47d0 commit f0906d9
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 242 deletions.
77 changes: 1 addition & 76 deletions Gruntfile.js
Expand Up @@ -12,78 +12,6 @@ module.exports = function(grunt) {
jsbeautifier: {
default: {
src: ["<%= jshint.files %>", "!test/fixtures/**", "package.json"]
},
successWithForce: {
src: ["tmp/verifyMode/not-been-beautified.js", "tmp/verifyMode/not-been-beautified.css"],
options: {
mode: "VERIFY_ONLY"
}
},
hasNotBeenBeautified: {
src: ["tmp/verifyMode/not-been-beautified.js", "tmp/verifyMode/not-been-beautified.css"],
options: {
mode: "VERIFY_ONLY"
}
},
hasBeenBeautified: {
src: ["tmp/verifyMode/been-beautified.js"],
options: {
mode: "VERIFY_ONLY"
}
},
fileMapping: {
src: ["tmp/fileMapping/not-beautified.js.erb",
"tmp/fileMapping/not-beautified.css.erb", "tmp/fileMapping/not-beautified.html.erb"
],
options: {
js: {
fileTypes: [".js.erb"],
maxPreserveNewlines: 2
},
css: {
fileTypes: [".css.erb"]
},
html: {
fileTypes: [".html.erb"],
preserveNewLines: true,
maxPreserveNewlines: 1
}
}
},
configFile: {
src: ["tmp/configFile/test.js",
"tmp/configFile/test.css", "tmp/configFile/test.html"
],
options: {
config: "tmp/configFile/jsbeautifyrc.json"
}
},
configFileFlat: {
src: "<%= jsbeautifier.configFile.src %>",
options: {
config: "tmp/configFile/jsbeautifyrc_flat.json"
}
},
configFileWithGruntFileOptions: {
src: "<%= jsbeautifier.configFile.src %>",
options: {
config: "tmp/configFile/jsbeautifyrc_flat.json",
js: {
indentSize: 3
},
css: {
indentSize: 5
},
html: {
indentSize: 7
}
}
},
dest: {
src: ["tmp/common/not-been-beautified.js"],
options: {
dest: "dest"
}
}
},
copy: {
Expand All @@ -95,9 +23,6 @@ module.exports = function(grunt) {
}
},
clean: ["tmp", "dest"],
nodeunit: {
all: ["test/**/*_test.js"]
},
mochaTest: {
test: {
options: {
Expand All @@ -124,6 +49,6 @@ module.exports = function(grunt) {
grunt.loadTasks("tasks");

// By default, beautify, lint and run all tests.
grunt.registerTask("test", ["jshint", "copy", "nodeunit", "clean", "mochaTest"]);
grunt.registerTask("test", ["jshint", "copy", "clean", "mochaTest"]);
grunt.registerTask("default", ["devUpdate", "test", "jsbeautifier:default"]);
};
6 changes: 3 additions & 3 deletions package.json
Expand Up @@ -31,11 +31,11 @@
"chai": "^1.9.2",
"grunt-contrib-clean": "^0.6.0",
"grunt-contrib-copy": "^0.7.0",
"grunt-contrib-jshint": "^0.10.0",
"grunt-contrib-jshint": "^0.11.0",
"grunt-contrib-nodeunit": "^0.4.1",
"grunt-dev-update": "^0.9.0",
"grunt-dev-update": "^1.0.2",
"grunt-mocha-test": "^0.12.1",
"load-grunt-tasks": "^0.6.0",
"load-grunt-tasks": "^3.0.0",
"ncp": "^1.0.1"
},
"scripts": {
Expand Down
58 changes: 0 additions & 58 deletions test/configFile_test.js

This file was deleted.

16 changes: 0 additions & 16 deletions test/dest_test.js

This file was deleted.

28 changes: 0 additions & 28 deletions test/fileMapping_test.js

This file was deleted.

18 changes: 0 additions & 18 deletions test/force_test.js

This file was deleted.

43 changes: 0 additions & 43 deletions test/mode_test.js

This file was deleted.

0 comments on commit f0906d9

Please sign in to comment.