jshint_test.js 363 B

123456789101112131415
  1. 'use strict';
  2. var grunt = require('grunt');
  3. var jshint = require('../tasks/lib/jshint').init(grunt);
  4. exports['jshint'] = function(test) {
  5. test.expect(1);
  6. grunt.log.muted = true;
  7. test.doesNotThrow(function() {
  8. jshint.lint(grunt.file.read('test/fixtures/lint.txt'));
  9. }, 'It should not blow up if an error occurs on character 0.');
  10. test.done();
  11. };