Skip to content

Commit

Permalink
Clean up test code
Browse files Browse the repository at this point in the history
  • Loading branch information
bdefoy committed Jan 28, 2025
1 parent 1c40ee9 commit 4b0b2cd
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@ import linterForRule from "./utils"

let linter: Spectral

//beforeAll(() => linterForRule("SuggestScopeParameter"))

beforeAll(async () => {
linter = await linterForRule("SuggestScopeParameter")
linter = linterForRule("SuggestScopeParameter")
return linter
})

Expand Down Expand Up @@ -39,7 +37,7 @@ test("SuggestScopeParameter should find errors for subscription and resource gro
},
}

return await linter.run(oasDoc).then((results) => {
return linter.run(oasDoc).then((results) => {
expect(results.length).toBe(2)

// all errors should have the same message
Expand Down Expand Up @@ -281,7 +279,7 @@ test("SuggestScopeParameter should find errors for tenant level scope", async ()
},
}

return await linter.run(oasDoc).then((results) => {
return linter.run(oasDoc).then((results) => {
expect(results.length).toBe(3)

// all errors should have the same message
Expand Down

0 comments on commit 4b0b2cd

Please # to comment.