Skip to content

Commit

Permalink
test: fix async test assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandermendes committed Oct 29, 2020
1 parent 703534a commit 061bf1a
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -129,12 +129,12 @@ describe("the dangerfile gitDSL - BitBucket Server", () => {

it("checks promise rejection for line not in the diff for inline comment", async () => {
const promise = bbs.findTypeOfLine(gitDSL, 2, "banana")
await expect(promise).rejects
await expect(promise).rejects.toBeUndefined()
})

it("checks promise rejection for `del` line for inline comment for deleted file", async () => {
const promise = bbs.findTypeOfLine(gitDSL, 0, "jest.eslint.config.js")
await expect(promise).rejects
await expect(promise).rejects.toBeUndefined()
})

it("writes a JSON DSL fixture", async () => {
Expand Down

0 comments on commit 061bf1a

Please sign in to comment.