Skip to content

Commit

Permalink
Reduce testing node requirement back down to 4
Browse files Browse the repository at this point in the history
  • Loading branch information
tmcw committed Apr 17, 2017
1 parent e160326 commit 03242f3
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
2 changes: 1 addition & 1 deletion circle.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
machine:
node:
version: 7
version: 4
24 changes: 16 additions & 8 deletions test/lib/infer/params.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,13 +162,15 @@ test('inferParams', function(t) {
);

t.deepEqual(
evaluate(function() {
evaluate(
`
/**
* Test
* @param {Object} a renamed destructuring param
*/
var f = function({ x }) {};
}).params,
`
).params,
[
{
description: {
Expand Down Expand Up @@ -256,10 +258,12 @@ test('inferParams', function(t) {
);

t.deepEqual(
evaluate(function() {
evaluate(
`
/** Test */
function f(x = 4) {}
}).params,
`
).params,
[
{
default: '4',
Expand All @@ -276,12 +280,14 @@ test('inferParams', function(t) {
);

t.deepEqual(
evaluate(function() {
evaluate(
`
/** Test
* @param {number} x
*/
function f(x = 4) {}
}).params,
`
).params,
[
{
default: '4',
Expand All @@ -302,10 +308,12 @@ test('inferParams', function(t) {
);

t.deepEqual(
evaluate(function() {
evaluate(
`
/** Test */
function f({ x: y }) {}
}).params,
`
).params,
[
{
anonymous: true,
Expand Down

0 comments on commit 03242f3

Please sign in to comment.