Socket
Socket
Sign inDemoInstall

eslint-plugin-jasmine

Package Overview
Dependencies
178
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.8.0 to 2.8.1

2

lib/rules/prefer-jasmine-matcher.js

@@ -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 @@ ],

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc