eslint-plugin-jasmine
Advanced tools
Comparing version 2.3.1 to 2.3.2
@@ -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" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
49
147389
1643