Removed @nuxtjs/dotenv (#1128)

* Removed `@nuxtjs/dotenv`

* Removed `@nuxtjs/dotenv`

* Fix broken tests

Co-authored-by: Andrew Bastin <andrewbastin.k@gmail.com>
This commit is contained in:
Liyas Thomas
2020-08-29 23:10:06 +05:30
committed by GitHub
parent 759a3f17cc
commit f429585447
4 changed files with 40 additions and 40 deletions

View File

@@ -1,14 +1,24 @@
import tab from "../tab"
import { mount } from "@vue/test-utils"
const factory = (props, data) =>
mount(tab, {
propsData: props,
data: data ? () => data : undefined,
slots: {
default: '<div id="testdiv"></div>',
},
})
const factory = (props, data) => {
if (data) {
return mount(tab, {
propsData: props,
data: () => data,
slots: {
default: '<div id="testdiv"></div>',
},
})
} else {
return mount(tab, {
propsData: props,
slots: {
default: '<div id="testdiv"></div>',
},
})
}
}
describe("tab", () => {
test("mounts properly when needed props are passed in", () => {