Skip to content

Commit

Permalink
test: fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dvirtz authored and antongolub committed Dec 8, 2024
1 parent 42954db commit 57ad604
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/ts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ describe('index', () => {
)

expect(log).toHaveBeenCalledWith('Publishing docs via gh-pages')
expect(log).toHaveBeenCalledWith('Docs published successfully, branch=doc-branch, src=docs, dst=root')
expect(log).toHaveBeenCalledWith(`Docs published successfully, branch=doc-branch, src=docs, pattern=${DEFAULT_PATTERN}, dst=root`)

expect(ghpagesPublish).toHaveBeenCalledWith(DEFAULT_SRC, expectedOpts, expect.any(Function))
expect(res).toBe(OK)
Expand All @@ -255,7 +255,7 @@ describe('index', () => {
await publish(pluginConfig, context)

expect(log).toHaveBeenCalledWith('Publishing docs via gh-pages')
expect(log).toHaveBeenCalledWith('Docs published successfully, branch=gh-pages, src=docs, dst=.')
expect(log).toHaveBeenCalledWith(`Docs published successfully, branch=gh-pages, src=docs, pattern=${DEFAULT_PATTERN}, dst=.`)
})

it('throws rejection on gh-pages fail', async () => {
Expand Down

0 comments on commit 57ad604

Please sign in to comment.