From f2ce1de51e69c515f7ab547483e15352711c6395 Mon Sep 17 00:00:00 2001 From: Ken Takahashi Date: Wed, 8 Nov 2023 15:38:35 +0900 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E7=AD=94=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- __tests__/object/script.test.ts | 2 +- object/script.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/__tests__/object/script.test.ts b/__tests__/object/script.test.ts index 690fcc3..da4473d 100644 --- a/__tests__/object/script.test.ts +++ b/__tests__/object/script.test.ts @@ -32,6 +32,6 @@ describe("オブジェクトの問題2", () => { describe("オブジェクトの問題3", () => { test("正しい結果が返ってきている", () => { - expect(func3()).toEqual("Leanne Graham,Sincere@april.bizRomaguera-Crona"); + expect(func3()).toEqual("Leanne Graham,Sincere@april.biz,Romaguera-Crona"); }); }); diff --git a/object/script.js b/object/script.js index 7888e90..e126067 100644 --- a/object/script.js +++ b/object/script.js @@ -55,5 +55,5 @@ const jsonStr = ` export const func3 = () => { const user = JSON.parse(jsonStr); - return `${user.name},${user.email}${user.company.name}`; + return `${user.name},${user.email},${user.company.name}`; };