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': 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 -}); 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 +});