Skip to content

Commit

Permalink
test: ♻️ simplify assertion and add new test case
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Dec 21, 2024
1 parent c7958a1 commit c3a2ca5
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions packages/sample/src/cli.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,7 @@ describe("scripts", async () => {
const cmd = "scripts"
await test("list", async () => {
const res = await $`node ${cli} ${cmd} list`
assert(
res.stdout.includes(
"id: poem"
)
)
assert(res.stdout.includes("id: poem"))
})
await test("create foobar", async () => {
const res = await $`node ${cli} ${cmd} create foobar`
Expand All @@ -65,6 +61,9 @@ describe("cli", async () => {
test("env openai", async () => {
await $`node ${cli} ${action} env openai`
})
test("models alias", async () => {
await $`node ${cli} ${action} models alias`
})
})
describe("parse", async () => {
const cmd = "parse"
Expand Down

0 comments on commit c3a2ca5

Please sign in to comment.