diff --git a/src/__tests__/niwango.test.ts b/src/__tests__/niwango.test.ts index fea7bd63..49b03b09 100644 --- a/src/__tests__/niwango.test.ts +++ b/src/__tests__/niwango.test.ts @@ -1,8 +1,10 @@ import { run } from "@/testUtils"; test("rand", () => { - const rand1 = run(`return rand("hoge")`); - const rand2 = run(`return rand("hoge")`); + const rand1 = run(`rand("hoge")`); + const rand2 = run(`rand("hoge")`); + const rand3 = run(`rand("huga")`); expect(rand1).toBe(rand2); + expect(rand3).not.toBe(rand1); }); export {};