Skip to content

Commit

Permalink
test(project): Quita handler de then innecesario. Gracias @unjust
Browse files Browse the repository at this point in the history
  • Loading branch information
lupomontero committed Jun 27, 2023
1 parent ed5000f commit da186e1
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/__tests__/project.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,6 @@ describe('parseProject', () => {
const p2 = resolveFixturePath('01-a-project-without-a-bad-title');
expect.assertions(4);
return parseProject(p)
.then(() => {
throw new Error('This should never happen');
})
.catch((err) => {
expect(err.message)
.toBe('Expected README.md to start with h1 and instead saw heading (depth: 2)');
Expand Down

0 comments on commit da186e1

Please sign in to comment.