Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
bun913 committed Aug 27, 2024
1 parent f88d933 commit 4927149
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions test/TestrailReporter.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,9 @@ describe("TestrailReporter", () => {
setEnvVars(vi)
vi.stubEnv("TESTRAIL_TITLE_MATCHING", "true")
const sut = new TestrailReporter(makeSampleEmitter(vi.fn()), {}, {})
sut.testRailApi.getCases = vi.fn().mockReturnValueOnce([
{ id: 1, title: "TestTitle" },
])
sut.testRailApi.getCases = vi
.fn()
.mockReturnValueOnce([{ id: 1, title: "TestTitle" }])
sut.env = getEnv()
const executions = makeNewmanResult({ assertionName: "TestTitle" })

Expand All @@ -227,11 +227,13 @@ describe("TestrailReporter", () => {
setEnvVars(vi)
vi.stubEnv("TESTRAIL_TITLE_MATCHING", "true")
const sut = new TestrailReporter(makeSampleEmitter(vi.fn()), {}, {})
sut.testRailApi.getCases = vi.fn().mockReturnValueOnce([
{ id: 1, title: "TestTitle" },
])
sut.testRailApi.getCases = vi
.fn()
.mockReturnValueOnce([{ id: 1, title: "TestTitle" }])
sut.env = getEnv()
const executions = makeNewmanResult({ assertionName: "NoMatchedTitle" })
const executions = makeNewmanResult({
assertionName: "NoMatchedTitle",
})

// act
sut.jsonifyResults(executions)
Expand Down

0 comments on commit 4927149

Please sign in to comment.