eslint-plugin-should-promised
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"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 @@ } |
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
9930