rename all components to new namespace (#1515)
Co-authored-by: Andrew Bastin <andrewbastin.k@gmail.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import field from "../field"
|
||||
import field from "../Field"
|
||||
import { shallowMount } from "@vue/test-utils"
|
||||
|
||||
const gqlField = {
|
||||
@@ -21,7 +21,7 @@ const factory = (props) =>
|
||||
shallowMount(field, {
|
||||
propsData: props,
|
||||
stubs: {
|
||||
typelink: {
|
||||
GraphqlTypeLink: {
|
||||
template: "<span>Typelink</span>",
|
||||
},
|
||||
},
|
||||
@@ -1,4 +1,4 @@
|
||||
import type from "../type"
|
||||
import type from "../Type"
|
||||
|
||||
import { shallowMount } from "@vue/test-utils"
|
||||
import {GraphQLEnumType, GraphQLInputObjectType, GraphQLInterfaceType, GraphQLObjectType} from "graphql"
|
||||
@@ -15,7 +15,7 @@ const factory = (props) =>
|
||||
$t: (text) => text,
|
||||
},
|
||||
propsData: { gqlTypes: [], ...props },
|
||||
stubs: ["field", "typelink"],
|
||||
stubs: ["GraphqlField", "GraphqlTypeLink"],
|
||||
})
|
||||
|
||||
describe("type", () => {
|
||||
@@ -61,7 +61,7 @@ describe("type", () => {
|
||||
getFields: undefined,
|
||||
},
|
||||
})
|
||||
expect(wrapper.find("field-stub").exists()).toEqual(false)
|
||||
expect(wrapper.find("GraphqlField-stub").exists()).toEqual(false)
|
||||
})
|
||||
|
||||
test("all fields are rendered if present with props passed properly", () => {
|
||||
@@ -71,7 +71,7 @@ describe("type", () => {
|
||||
},
|
||||
})
|
||||
|
||||
expect(wrapper.findAll("field-stub").length).toEqual(2)
|
||||
expect(wrapper.findAll("GraphqlField-stub").length).toEqual(2)
|
||||
})
|
||||
|
||||
test("prepends 'input' to type name for Input Types", () => {
|
||||
@@ -1,4 +1,4 @@
|
||||
import typelink from "../typelink"
|
||||
import typelink from "../TypeLink.vue"
|
||||
import { shallowMount } from "@vue/test-utils"
|
||||
import {GraphQLInt} from "graphql"
|
||||
|
||||
Reference in New Issue
Block a user