eslint-plugin-jasmine
Advanced tools
Comparing version 2.8.0 to 2.8.1
@@ -20,3 +20,3 @@ 'use strict' | ||
var expectNode = node.arguments && node.arguments[0] | ||
if (expectNode.type === 'BinaryExpression' && operators.indexOf(expectNode.operator) > -1) { | ||
if (expectNode && expectNode.type === 'BinaryExpression' && operators.indexOf(expectNode.operator) > -1) { | ||
context.report({ | ||
@@ -23,0 +23,0 @@ message: 'Prefer jasmine matcher instead of comparison', |
@@ -54,3 +54,3 @@ { | ||
}, | ||
"version": "2.8.0" | ||
"version": "2.8.1" | ||
} |
@@ -41,2 +41,10 @@ 'use strict' | ||
'});' | ||
]), | ||
// issue #136 | ||
linesToCode([ | ||
'describe("", function() {', | ||
' it("", function(){', | ||
' expect()', | ||
' });', | ||
'});' | ||
]) | ||
@@ -43,0 +51,0 @@ ], |
170060
2162