File: enable-only-nodeunit-in-grunt-file.diff

package info (click to toggle)
node-grunt-legacy-util 2.0.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 388 kB
  • sloc: javascript: 697; makefile: 2; sh: 1
file content (61 lines) | stat: -rw-r--r-- 1,443 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
Description: Fix tests
Author: Xavier Guimard <yadd@debian.org>
Forwarded: not-needed
Last-Update: 2019-09-20

--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -3,12 +3,6 @@
 module.exports = function(grunt) {
 
   grunt.initConfig({
-    jshint: {
-      options: {
-        jshintrc: '.jshintrc',
-      },
-      all: ['*.js', 'test/*.js'],
-    },
     nodeunit: {
       util: ['test/index.js']
     },
@@ -20,11 +14,9 @@
     },
   });
 
-  grunt.loadNpmTasks('grunt-contrib-jshint');
   grunt.loadNpmTasks('grunt-contrib-nodeunit');
-  grunt.loadNpmTasks('grunt-contrib-watch');
 
-  grunt.registerTask('test', ['jshint', 'nodeunit']);
-  grunt.registerTask('default', ['test', 'watch']);
+  grunt.registerTask('test', ['nodeunit']);
+  grunt.registerTask('default', ['test']);
 
 };
--- a/test/index.js
+++ b/test/index.js
@@ -5,7 +5,7 @@
 var fs = require('fs');
 var path = require('path');
 
-var Tempfile = require('temporary/lib/file');
+//var Tempfile = require('temporary/lib/file');
 
 exports['util.callbackify'] = {
   'return': function(test) {
@@ -259,6 +259,7 @@
       test.done();
     });
   },
+  /*
   'custom stdio stream(s)': function(test) {
     test.expect(6);
     var stdoutFile = new Tempfile();
@@ -281,6 +282,7 @@
     test.ok(!child.stdout, 'child should not have a stdout property.');
     test.ok(!child.stderr, 'child should not have a stderr property.');
   },
+  */
 };
 
 exports['util.spawn.multibyte'] = {