rename all components to new namespace (#1515)

Co-authored-by: Andrew Bastin <andrewbastin.k@gmail.com>
This commit is contained in:
Liyas Thomas
2021-03-01 09:28:14 +05:30
committed by GitHub
parent 37bdd525ea
commit dc5ca76d05
86 changed files with 2761 additions and 3077 deletions

View File

@@ -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>",
},
},

View File

@@ -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", () => {

View File

@@ -1,4 +1,4 @@
import typelink from "../typelink"
import typelink from "../TypeLink.vue"
import { shallowMount } from "@vue/test-utils"
import {GraphQLInt} from "graphql"