init NewTaskForm

This commit is contained in:
Julien Calixte
2023-04-06 23:04:55 +02:00
parent 4829a3cff4
commit 707cbcefbb
2 changed files with 24 additions and 0 deletions

View 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')
})
})

View 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>