Skip to content

Commit

Permalink
add test for #49
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Dec 12, 2016
1 parent 81b2172 commit 85ffe84
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/no-return-wrap.js
Expand Up @@ -40,7 +40,10 @@ ruleTester.run('no-return-wrap', rule, {
'var x = function() { return Promise.resolve(4) }',
'function y() { return Promise.resolve(4) }',
'function then() { return Promise.reject() }',
'doThing(function(x) { return Promise.reject(x) })'
'doThing(function(x) { return Promise.reject(x) })',

// should work with empty return statement
'doThing().then(function() { return })'
],

invalid: [
Expand Down

0 comments on commit 85ffe84

Please sign in to comment.