From 5c49d217d5b01eef78538efef5edcc49e0738112 Mon Sep 17 00:00:00 2001 From: Munieru <20086673+munierujp@users.noreply.github.com> Date: Sat, 3 Feb 2024 13:33:09 +0900 Subject: [PATCH 1/3] =?UTF-8?q?=E6=84=8F=E5=9B=B3=E7=9A=84=E3=81=AB?= =?UTF-8?q?=E3=83=86=E3=82=B9=E3=83=88=E3=82=92=E5=A4=B1=E6=95=97=E3=81=95?= =?UTF-8?q?=E3=81=9B=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test-unit/lib/displayHelper.spec.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test-unit/lib/displayHelper.spec.js b/test-unit/lib/displayHelper.spec.js index bf4d2fd1..3615eda1 100644 --- a/test-unit/lib/displayHelper.spec.js +++ b/test-unit/lib/displayHelper.spec.js @@ -17,6 +17,7 @@ describe('getNowYMD', () => { const mockDate = new Date('2022-01-05T12:34:56'); const result = getNowYMD(mockDate, 'en'); const expected = mockDate.toLocaleString('en-US'); - expect(result).toBe(expected); + // TODO: 意図的に失敗するようにしている + expect(result).toBe(expected + '_foo'); }); -}); \ No newline at end of file +}); From 146cc6c0649585a8c32fd8caea39a622aedbec52 Mon Sep 17 00:00:00 2001 From: Munieru <20086673+munierujp@users.noreply.github.com> Date: Sat, 3 Feb 2024 16:33:52 +0900 Subject: [PATCH 2/3] =?UTF-8?q?=E6=84=8F=E5=9B=B3=E7=9A=84=E3=81=AB?= =?UTF-8?q?=E3=83=86=E3=82=B9=E3=83=88=E3=82=92=E5=A4=B1=E6=95=97=E3=81=95?= =?UTF-8?q?=E3=81=9B=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/displayHelper.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/displayHelper.ts b/lib/displayHelper.ts index 3b68777d..63aef5b9 100644 --- a/lib/displayHelper.ts +++ b/lib/displayHelper.ts @@ -8,7 +8,8 @@ export function getNowYMD(dt:Date, locale?:string):string{ const hh = ("00" + dt.getHours()).slice(-2); const mm = ("00" + dt.getMinutes()).slice(-2); const result = y + "年" + m + "月" + d + "日" + hh + "時" + mm + "分"; - return result + // TODO: 意図的に失敗するようにしている + return result + '_bar' case 'en': return dt.toLocaleString('en-JP'); case 'es': From 5362de8f4c2dff949e5d8447b8a79cc2bc7d7ecb Mon Sep 17 00:00:00 2001 From: Munieru <20086673+munierujp@users.noreply.github.com> Date: Sat, 3 Feb 2024 21:42:47 +0900 Subject: [PATCH 3/3] Delete test-unit/components/Logo.vue.spec.js --- test-unit/components/Logo.vue.spec.js | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 test-unit/components/Logo.vue.spec.js diff --git a/test-unit/components/Logo.vue.spec.js b/test-unit/components/Logo.vue.spec.js deleted file mode 100644 index 83bc4037..00000000 --- a/test-unit/components/Logo.vue.spec.js +++ /dev/null @@ -1,24 +0,0 @@ -// Import the required libraries -import { mount } from '@vue/test-utils'; -import Logo from '~/components/Logo.vue'; - -// Describe the test suite -describe('Logo', () => { - // Test if the component renders correctly - it('renders the component', () => { - const wrapper = mount(Logo); - expect(wrapper.exists()).toBe(true); - }); - - // You can add more specific tests for your component's behavior here - // For example, testing the presence and styling of individual triangles - - it('contains four triangles with correct styling', () => { - const wrapper = mount(Logo); - const triangles = wrapper.findAll('.Triangle'); - - expect(triangles).toHaveLength(4); - }); - - // Add more tests as needed -});