Skip to content

test: refactor ls to use AVA#609

Merged
freitagbr merged 1 commit intomasterfrom
test-ava-ls
Dec 14, 2016
Merged

test: refactor ls to use AVA#609
freitagbr merged 1 commit intomasterfrom
test-ava-ls

Conversation

@nfischer
Copy link
Copy Markdown
Member

@nfischer nfischer commented Dec 8, 2016

Will update when I verify all tests are copied

@nfischer nfischer added the test label Dec 8, 2016
@nfischer nfischer force-pushed the test-ava-ls branch 3 times, most recently from 81bf1ff to 290e599 Compare December 8, 2016 07:33
@nfischer nfischer requested a review from freitagbr December 8, 2016 07:33
@nfischer
Copy link
Copy Markdown
Member Author

nfischer commented Dec 8, 2016

Ready for review

ava-test/ls.js Outdated
idx = k;
break;
}
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about this:

const idx = result.map(r => r.name).indexOf('file1');

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

ava-test/ls.js Outdated
idx = k;
break;
}
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here:

const idx = result.map(r => r.name).indexOf('a_dir/b_dir');

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@nfischer
Copy link
Copy Markdown
Member Author

nfischer commented Dec 9, 2016

PTAL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants