Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-jasmine

Package Overview
Dependencies
Maintainers
1
Versions
56
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.8.1 to 2.8.2

4

lib/rules/no-suite-callback-args.js

@@ -16,3 +16,5 @@ 'use strict'

if (arg.type === 'FunctionExpression' && arg.params.length) {
if ((arg.type === 'FunctionExpression' || arg.type === 'ArrowFunctionExpression') &&
arg.params.length
) {
context.report({

@@ -19,0 +21,0 @@ message: "Unexpected argument in suite's callback",

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

},
"version": "2.8.1"
"version": "2.8.2"
}

@@ -5,5 +5,10 @@ 'use strict'

var RuleTester = require('eslint').RuleTester
var linesToCode = require('../helpers/lines_to_code')
var eslintTester = new RuleTester()
const parserOptions = {
ecmaVersion: 8
}
var eslintTester = new RuleTester({parserOptions})
eslintTester.run('describe-with-done', rule, {

@@ -17,3 +22,15 @@ valid: [

'describe("My suite", function() {\nit("A spec", function(done) {});\n});',
'describe("My suite", function() {\nit("A spec", function(done) {\ndone();\n});\n });'
'describe("My suite", function() {\nit("A spec", function(done) {\ndone();\n});\n });',
linesToCode([
'describe("", () => {',
' it("", () => {',
' });',
'});'
]),
linesToCode([
'describe("", () => {',
' it("", (done) => {',
' });',
'});'
])
],

@@ -77,4 +94,29 @@

]
}
]
},
{
code: linesToCode([
'describe("", (done) => {',
' it("", (done) => {',
' });',
'});'
]),
errors: [
{
message: "Unexpected argument in suite's callback"
}
]
},
{
code: linesToCode([
'describe("", () => {',
' describe("", (done) => {',
' });',
'});'
]),
errors: [
{
message: "Unexpected argument in suite's callback"
}
]
}]
})
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc