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

eslint-plugin-should-promised

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-should-promised - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

2

package.json
{
"name": "eslint-plugin-should-promised",
"version": "1.0.2",
"version": "1.0.3",
"description": "Eslint rule for checking that should-promised assertions return",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -52,3 +52,3 @@ [![NPM Version](https://img.shields.io/npm/v/eslint-plugin-should-promised.svg?style=flat)](https://www.npmjs.org/package/eslint-plugin-should-promised)

it('warn when not returning the promise from should.be.fulfilled', function() {
thing.fn().should.be.fulfilled;
thing.fn().should.be.fulfilled();
});

@@ -67,3 +67,3 @@

it('warn when not returning the promise from should.be.fulfilled', function() {
return thing.fn().should.be.fulfilled;
return thing.fn().should.be.fulfilled();
});

@@ -70,0 +70,0 @@

@@ -12,10 +12,10 @@ 'use strict';

valid: [
'var test = function() { return fn().should.be.Promise; }',
'var test = function() { return fn().should.be["Promise"]; }',
'var test = function() { return fn().should.be.fulfilled; }',
'var test = function() { return fn().should.be["fulfilled"]; }',
'var test = function() { return fn().should.be.Promise(); }',
'var test = function() { return fn().should.be["Promise"](); }',
'var test = function() { return fn().should.be.fulfilled(); }',
'var test = function() { return fn().should.be["fulfilled"](); }',
'var test = function() { return fn().should.fulfilledWith(1); }',
'var test = function() { return fn().should["fulfilledWith"](1); }',
'var test = function() { return fn().should.be.rejected; }',
'var test = function() { return fn().should.be["rejected"]; }',
'var test = function() { return fn().should.be.rejected(); }',
'var test = function() { return fn().should.be["rejected"](); }',
'var test = function() { return fn().should.rejectedWith(1); }',

@@ -27,3 +27,3 @@ 'var test = function() { return fn().should["rejectedWith"](1); }',

'var test = function() { return fn().should["eventually"].eql(1); }',
'var test = function() { return fn().then(function(){}).should.be.fulfilled; }',
'var test = function() { return fn().then(function(){}).should.be.fulfilled(); }',
],

@@ -33,15 +33,15 @@

{
code: 'var test = function() { fn().should.be.Promise; }',
code: 'var test = function() { fn().should.be.Promise(); }',
errors: [{ message: expectedErrorMessage, column: 39, line: 1 }]
},
{
code: 'var test = function() { fn().should.be["Promise"]; }',
code: 'var test = function() { fn().should.be["Promise"](); }',
errors: [{ message: expectedErrorMessage, column: 39, line: 1 }]
},
{
code: 'var test = function() { fn().should.be.fulfilled; }',
code: 'var test = function() { fn().should.be.fulfilled(); }',
errors: [{ message: expectedErrorMessage, column: 39, line: 1 }]
},
{
code: 'var test = function() { fn().should.be["fulfilled"]; }',
code: 'var test = function() { fn().should.be["fulfilled"](); }',
errors: [{ message: expectedErrorMessage, column: 39, line: 1 }]

@@ -58,7 +58,7 @@ },

{
code: 'var test = function() { fn().should.be.rejected; }',
code: 'var test = function() { fn().should.be.rejected(); }',
errors: [{ message: expectedErrorMessage, column: 39, line: 1 }]
},
{
code: 'var test = function() { fn().should.be["rejected"]; }',
code: 'var test = function() { fn().should.be["rejected"](); }',
errors: [{ message: expectedErrorMessage, column: 39, line: 1 }]

@@ -91,3 +91,3 @@ },

{
code: 'fn().should.be.fulfilled;',
code: 'fn().should.be.fulfilled();',
errors: [{ message: expectedErrorMessage, column: 15, line: 1 }]

@@ -94,0 +94,0 @@ }

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