Skip to content

Commit

Permalink
Remove flat function
Browse files Browse the repository at this point in the history
Remove flat function in the tests, since it is a newer node feature

Signed-off-by: Yann Jorelle <yann.jorelle@nokia.com>
  • Loading branch information
Yann Jorelle committed Aug 12, 2020
1 parent a890f8a commit 1441095
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/axioms/contributor_count_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe('contributors axiom', () => {
it('rule enabled because contributor count greater than ten', () => {
const result = repolinter.lint(path.resolve('tests/package'))
const { rule } = result
.flat(1)
.map((r) => r[0])
.find((res) => res.rule.id === 'contributing-file-exists')
expect(rule.enabled).to.equal(true)
})
Expand Down

0 comments on commit 1441095

Please sign in to comment.