'use strict';

module.exports = function(grunt) {

  grunt.initConfig({
    pkg: grunt.file.readJSON('package.json'),
    jshint: {
      files: ['Gruntfile.js', 'lib/**/*.js'],
      options: {
        globalstrict: true,
        node: true,
        globals: {
          jQuery: true,
          console: false,
          module: true,
          document: true
        }
      }
    },
    mochaTest: {
      test: {
        options: {
          reporter: 'spec'
        },
        src: ['test/**/*.js'],
        env: {
          NODE_ENV: "test"
        }
      }
    }
  });

  grunt.loadNpmTasks('grunt-contrib-jshint');
  grunt.loadNpmTasks('grunt-mocha-test');


  grunt.registerTask('test-env', function() {process.env.NODE_ENV = "test";});
  grunt.registerTask('test', ['test-env', 'jshint', 'mochaTest' ]);
  grunt.registerTask('default', ['test']);

};

'use strict';

module.exports = function(grunt) {

  grunt.initConfig({
    pkg: grunt.file.readJSON('package.json'),
    jshint: {
      options: {
        globalstrict: true,
        node: true,
        globals: {
          jQuery: true,
          console: false,
          module: true,
          document: true
        }
      }
    },
    mochaTest: {
      test: {
        options: {
          reporter: 'spec'
        },
        src: ['test/**/*.js'],
        env: {
          NODE_ENV: "test"
        }
      }
    }
  });

  grunt.loadNpmTasks('grunt-contrib-jshint');
  grunt.loadNpmTasks('grunt-mocha-test');


  grunt.registerTask('test-env', function() {process.env.NODE_ENV = "test";});
  grunt.registerTask('test', ['test-env', 'jshint', 'mochaTest' ]);
  grunt.registerTask('default', ['test']);

};

Remove `file` field from jshint configuration.
Remove `file` field from jshint configuration.

Tests were failing with message
"Warning: Path must be a string. Received null"

Closes imdone/imdone-core#48
