From 0a2865a95e9e84ed4f5b2fa21d80b2ea155b55fa Mon Sep 17 00:00:00 2001 From: xpadev Date: Tue, 24 Oct 2023 09:29:16 +0900 Subject: [PATCH] fix: tests --- src/__tests__/niwango.test.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 {};