init NewTaskForm
This commit is contained in:
11
src/use-cases/task/components/NewTaskForm.test.ts
Normal file
11
src/use-cases/task/components/NewTaskForm.test.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import NewTaskVue from './NewTaskForm.vue'
|
||||
|
||||
describe('New Task Form', () => {
|
||||
it('displays New Task Form title', () => {
|
||||
const wrapper = mount(NewTaskVue)
|
||||
|
||||
expect(wrapper.text()).toContain('New Task Form')
|
||||
})
|
||||
})
|
||||
13
src/use-cases/task/components/NewTaskForm.vue
Normal file
13
src/use-cases/task/components/NewTaskForm.vue
Normal file
@@ -0,0 +1,13 @@
|
||||
<template>
|
||||
<div>
|
||||
<h1>New Task Form</h1>
|
||||
<form @submit.prevent>
|
||||
<label for="title">Title</label>
|
||||
<input type="text" id="title" />
|
||||
</form>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts"></script>
|
||||
|
||||
<style scoped></style>
|
||||
Reference in New Issue
Block a user