Socket
Socket
Sign inDemoInstall

eslint-plugin-jasmine

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-jasmine - npm Package Compare versions

Comparing version 2.3.1 to 2.3.2

lib/helpers/buildName.js

14

lib/rules/missing-expect.js

@@ -8,2 +8,4 @@ 'use strict'

var buildName = require('../helpers/buildName')
module.exports = function (context) {

@@ -14,14 +16,2 @@ var allowed = context.options.length ? context.options : ['expect()']

function buildName (node) {
if (node.type === 'CallExpression') {
return buildName(node.callee) + '()'
}
if (node.type === 'MemberExpression') {
return buildName(node.object) + '.' + node.property.name
}
if (node.type === 'Identifier') {
return node.name
}
}
return {

@@ -28,0 +18,0 @@ CallExpression: function (node) {

@@ -8,3 +8,3 @@ 'use strict'

var prohibit = require('../prohibit')
var prohibit = require('../helpers/prohibit')

@@ -11,0 +11,0 @@ module.exports = function (context) {

@@ -8,2 +8,4 @@ 'use strict'

var buildName = require('../helpers/buildName')
module.exports = function (context) {

@@ -16,14 +18,2 @@ var allowed = context.options.length ? context.options : ['expect()']

function buildName (node) {
if (node.type === 'CallExpression') {
return buildName(node.callee) + '()'
}
if (node.type === 'MemberExpression') {
return buildName(node.object) + '.' + node.property.name
}
if (node.type === 'Identifier') {
return node.name
}
}
return {

@@ -30,0 +20,0 @@ CallExpression: function (node) {

@@ -8,3 +8,3 @@ 'use strict'

var prohibit = require('../prohibit')
var prohibit = require('../helpers/prohibit')

@@ -11,0 +11,0 @@ module.exports = function (context) {

@@ -16,2 +16,2 @@ 'use strict'

module.exports = require('../no-dupes')('spec', branchBlocks, checkedBlocks)
module.exports = require('../helpers/no-dupes')('spec', branchBlocks, checkedBlocks)

@@ -16,2 +16,2 @@ 'use strict'

module.exports = require('../no-dupes')('suite', branchBlocks, checkedBlocks)
module.exports = require('../helpers/no-dupes')('suite', branchBlocks, checkedBlocks)

@@ -54,3 +54,3 @@ {

},
"version": "2.3.1"
"version": "2.3.2"
}
SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc