File tree 3 files changed +6
-7
lines changed
3 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 48
48
message : " The first argument should be the `actual`, not the `expected` value."
49
49
- selector : " CallExpression[callee.object.name='assert'][callee.property.name='deepStrictEqual'][arguments.0.type='Literal']:not([arguments.1.type='Literal']):not([arguments.1.type='ObjectExpression']):not([arguments.1.type='ArrayExpression'])"
50
50
message : " The first argument should be the `actual`, not the `expected` value."
51
- # TODO: Activate the `strictEqual` rule as soon as it produces less churn.
52
- # - selector: "CallExpression[callee.object.name='assert'][callee.property.name='strictEqual'][arguments.0.type='Literal']:not([arguments.1.type='Literal']):not([arguments.1.type='ObjectExpression']):not([arguments.1.type='ArrayExpression'])"
53
- # message: "The first argument should be the `actual`, not the `expected` value."
51
+ - selector : " CallExpression[callee.object.name='assert'][callee.property.name='strictEqual'][arguments.0.type='Literal']:not([arguments.1.type='Literal']):not([arguments.1.type='ObjectExpression']):not([arguments.1.type='ArrayExpression'])"
52
+ message : " The first argument should be the `actual`, not the `expected` value."
54
53
# Global scoped methods and vars
55
54
globals :
56
55
WebAssembly : false
Original file line number Diff line number Diff line change @@ -28,11 +28,11 @@ const net = require('net');
28
28
const server = http . createServer ( common . mustCall ( ( req , res ) => {
29
29
assert . strictEqual ( req . method , 'GET' ) ;
30
30
assert . strictEqual ( req . url , '/blah' ) ;
31
- assert . deepStrictEqual ( {
31
+ assert . deepStrictEqual ( req . headers , {
32
32
host : 'example.org:443' ,
33
33
origin : 'http://example.org' ,
34
34
cookie : ''
35
- } , req . headers ) ;
35
+ } ) ;
36
36
} ) ) ;
37
37
38
38
@@ -52,7 +52,7 @@ server.listen(0, common.mustCall(() => {
52
52
received += data . toString ( ) ;
53
53
} ) ) ;
54
54
c . on ( 'end' , common . mustCall ( ( ) => {
55
- assert . strictEqual ( 'HTTP/1.1 400 Bad Request\r\n\r\n' , received ) ;
55
+ assert . strictEqual ( received , 'HTTP/1.1 400 Bad Request\r\n\r\n' ) ;
56
56
c . end ( ) ;
57
57
} ) ) ;
58
58
c . on ( 'close' , common . mustCall ( ( ) => server . close ( ) ) ) ;
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ if (process.argv[2] === 'you-are-the-child') {
68
68
// delete should return true except for non-configurable properties
69
69
// https://github.com/nodejs/node/issues/7960
70
70
delete process . env . NON_EXISTING_VARIABLE ;
71
- assert . strictEqual ( true , delete process . env . NON_EXISTING_VARIABLE ) ;
71
+ assert ( delete process . env . NON_EXISTING_VARIABLE ) ;
72
72
73
73
/* For the moment we are not going to support setting the timezone via the
74
74
* environment variables. The problem is that various V8 platform backends
You can’t perform that action at this time.
0 commit comments