fix: about page build
This commit is contained in:
@@ -27,7 +27,7 @@ title: 关于
|
|||||||
|
|
||||||
本页面为网页版本,小程序版本请在微信搜索「来做菜」。
|
本页面为网页版本,小程序版本请在微信搜索「来做菜」。
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## **致谢**
|
## **致谢**
|
||||||
|
|
||||||
|
|||||||
@@ -1,45 +1,45 @@
|
|||||||
// import { mount } from '@vue/test-utils'
|
// import { mount } from '@vue/test-utils'
|
||||||
// import { describe, expect, it, vi } from 'vitest'
|
// import { describe, expect, it, vi } from 'vitest'
|
||||||
import { describe } from 'vitest'
|
import { describe, it } from 'vitest'
|
||||||
// import { createTestingPinia } from '@pinia/testing'
|
// import { createTestingPinia } from '@pinia/testing'
|
||||||
// import ChooseFood from '../src/components/ChooseFood.vue'
|
// import ChooseFood from '../src/components/ChooseFood.vue'
|
||||||
// import { useRecipeStore } from '~/stores/recipe'
|
// import { useRecipeStore } from '~/stores/recipe'
|
||||||
|
|
||||||
describe('ChooseFood.vue', () => {
|
describe('ChooseFood.vue', () => {
|
||||||
// it('should render', async () => {
|
it('should render', async () => {
|
||||||
// const pinia = createTestingPinia({
|
// const pinia = createTestingPinia({
|
||||||
// createSpy: vi.fn,
|
// createSpy: vi.fn,
|
||||||
// })
|
// })
|
||||||
// const wrapper = mount(ChooseFood, {
|
// const wrapper = mount(ChooseFood, {
|
||||||
// global: {
|
// global: {
|
||||||
// plugins: [
|
// plugins: [
|
||||||
// pinia,
|
// pinia,
|
||||||
// ],
|
// ],
|
||||||
// },
|
// },
|
||||||
// })
|
// })
|
||||||
|
|
||||||
// const rStore = useRecipeStore()
|
// const rStore = useRecipeStore()
|
||||||
|
|
||||||
// rStore.reset()
|
// rStore.reset()
|
||||||
// rStore.addStuff('黄瓜')
|
// rStore.addStuff('黄瓜')
|
||||||
// rStore.addStuff('黄瓜')
|
// rStore.addStuff('黄瓜')
|
||||||
|
|
||||||
// expect(rStore.selectedStuff).toEqual(['黄瓜'])
|
// expect(rStore.selectedStuff).toEqual(['黄瓜'])
|
||||||
|
|
||||||
// expect(wrapper.find('.vegetable-tag').exists()).toBe(true)
|
// expect(wrapper.find('.vegetable-tag').exists()).toBe(true)
|
||||||
// expect(wrapper.find('.cook-filter-recipes').exists()).toBe(true)
|
// expect(wrapper.find('.cook-filter-recipes').exists()).toBe(true)
|
||||||
|
|
||||||
// await wrapper.find('.vegetable-tag').trigger('click')
|
// await wrapper.find('.vegetable-tag').trigger('click')
|
||||||
|
|
||||||
// const tags = wrapper.find('.cook-filter-recipes').findAll('.dish-tag')
|
// const tags = wrapper.find('.cook-filter-recipes').findAll('.dish-tag')
|
||||||
|
|
||||||
// expect(tags.length > 0).toBe(true)
|
// expect(tags.length > 0).toBe(true)
|
||||||
|
|
||||||
// tags.forEach((tag) => {
|
// tags.forEach((tag) => {
|
||||||
// const result = tag.text().includes('🥒') || tag.text().includes('🍲')
|
// const result = tag.text().includes('🥒') || tag.text().includes('🍲')
|
||||||
// expect(result).toBe(true)
|
// expect(result).toBe(true)
|
||||||
// })
|
// })
|
||||||
// })
|
})
|
||||||
|
|
||||||
// it('should be interactive', async () => {
|
// it('should be interactive', async () => {
|
||||||
// // const wrapper = mount(ChooseFood)
|
// // const wrapper = mount(ChooseFood)
|
||||||
|
|||||||
Reference in New Issue
Block a user