mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
refactor(client): move to Vite by @phillipthelen
This commit is contained in:
@@ -1,14 +1,15 @@
|
||||
import { describe, expect, test } from 'vitest';
|
||||
import Vue from 'vue';
|
||||
import DrawerComponent from '@/components/ui/drawer.vue';
|
||||
|
||||
describe('DrawerComponent', () => {
|
||||
it('sets the correct default data', () => {
|
||||
test('sets the correct default data', () => {
|
||||
expect(DrawerComponent.data).to.be.a('function');
|
||||
const defaultData = DrawerComponent.data();
|
||||
expect(defaultData.isOpened).to.be.true;
|
||||
});
|
||||
|
||||
it('renders the correct title', () => {
|
||||
test('renders the correct title', () => {
|
||||
const Ctor = Vue.extend(DrawerComponent);
|
||||
const vm = new Ctor({
|
||||
propsData: {
|
||||
|
||||
Reference in New Issue
Block a user