Skip to content

Commit

Permalink
fix: test fail
Browse files Browse the repository at this point in the history
  • Loading branch information
kamontat committed Jun 12, 2024
1 parent 6a0e540 commit f5f845f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion actions/example-ts/src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import runner from "./index"
describe("application runner", () => {
test("should print info logs", async () => {
await runner({ input: { name: "name" } }, context)
expect(info).toHaveBeenCalledTimes(2)
expect(info).toHaveBeenCalled()
expect(info).toHaveBeenLastCalledWith("hello name")
})
})
4 changes: 2 additions & 2 deletions actions/example-ts/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import actions from "./app"
const runner: AppRunner<typeof actions> = (data, context) => {
const logger = context.use("log")

logger.info("Use {0}: {1}", context.name, context.version)
logger.info("hello {name}", data.input)
logger.info(process.cwd())
logger.info(__dirname)
logger.info("Use {0}: {1}", context.name, context.version)
logger.info("hello {name}", data.input)
}

actions.exec(runner)
Expand Down

0 comments on commit f5f845f

Please sign in to comment.