Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

misc changes

  • Loading branch information...
commit 3ac36376ebf7cbc55f197e40a364c2d16d36aa97 1 parent ea91436
@tly1980 authored
View
2  grunt.js
@@ -1,5 +1,5 @@
module.exports = function(grunt) {
-
+ "use strict";
// Project configuration.
grunt.initConfig({
test: {
View
10 tasks/html2json.js
@@ -7,7 +7,7 @@
*/
module.exports = function(grunt) {
-
+ "use strict";
// ==========================================================================
// TASKS
// ==========================================================================
@@ -34,10 +34,10 @@ module.exports = function(grunt) {
// HELPERS
// ==========================================================================
- function filename_to_key(filenmame){
- ret = filenmame.split('/').pop();
- ret = ret.split('.').shift();
- return ret;
+ function filename_to_key(filename){
+ var filename_new = filename.split('/').pop();
+ filename_new = filename_new.split('.').shift();
+ return filename_new;
}
// Concat source files and/or directives.
View
23 test/html2json_test.js
@@ -21,14 +21,17 @@ var grunt = require('grunt');
*/
exports['html2json'] = {
- setUp: function(done) {
- // setup here
- done();
- },
- 'helper': function(test) {
- test.expect(1);
- // tests here
- test.equal(grunt.helper('html2json'), 'html2json!!!', 'should return the correct value.');
- test.done();
- }
+
+ // setUp: function(done) {
+ // // setup here
+ // "use strict";
+ // done();
+ // },
+ // 'helper': function(test) {
+ // "use strict";
+ // test.expect(1);
+ // // tests here
+ // //test.equal(grunt.helper('html2json'), 'html2json!!!', 'should return the correct value.');
+ // test.done();
+ // }
};
View
4 test_prj/grunt.js
@@ -1,5 +1,5 @@
module.exports = function(grunt) {
-
+ "use strict";
// // Project configuration.
grunt.initConfig({
html2json: {
@@ -16,7 +16,7 @@ module.exports = function(grunt) {
});
// Load local tasks.
- grunt.loadTasks('../tasks');
+ grunt.loadTasks('html2json');
// Default task.
grunt.registerTask('default', 'html2json');
Please sign in to comment.
Something went wrong with that request. Please try again.