fedimovies-web/tests/unit/avatar.spec.ts

17 lines
549 B
TypeScript
Raw Normal View History

2021-04-17 03:16:54 +00:00
import { expect } from "chai"
import { shallowMount } from "@vue/test-utils"
2022-05-18 14:33:06 +00:00
// Import doesn't work because of sass-loader (SassError: Can't find stylesheet to import)
// import Avatar from "@/components/Avatar.vue"
2021-04-17 03:16:54 +00:00
describe("Avatar.vue", () => {
// Not working due to Vue bug https://github.com/vuejs/vue-next/issues/3590
2022-05-18 14:33:06 +00:00
/*
2021-04-17 03:16:54 +00:00
it.skip("Renders component", () => {
const profile = { avatar: "https://test.com" }
const wrapper = shallowMount(Avatar as any, { props: { profile } })
expect(wrapper.text()).to.include("")
})
2022-05-18 14:33:06 +00:00
*/
2021-04-17 03:16:54 +00:00
})