diff --git a/build/gulp/plugins/util/getComponentInfo.ts b/build/gulp/plugins/util/getComponentInfo.ts
index 411cb1dfd1..afc11fda8c 100644
--- a/build/gulp/plugins/util/getComponentInfo.ts
+++ b/build/gulp/plugins/util/getComponentInfo.ts
@@ -46,10 +46,6 @@ const getComponentInfo = (filepath: string, checksum?: string) => {
// add checksum
info.checksum = checksum
- // add exported Component info
- const Component = require(absPath).default
- info.constructorName = _.get(Component, 'prototype.constructor.name', null)
-
// add component type
info.type = componentType
diff --git a/build/gulp/tasks/generate/templates/test-specs-components/$DisplayName/$DisplayName-test.tsx b/build/gulp/tasks/generate/templates/test-specs-components/$DisplayName/$DisplayName-test.tsx
index ccafa99216..b0d3d15dc2 100644
--- a/build/gulp/tasks/generate/templates/test-specs-components/$DisplayName/$DisplayName-test.tsx
+++ b/build/gulp/tasks/generate/templates/test-specs-components/$DisplayName/$DisplayName-test.tsx
@@ -3,5 +3,5 @@ import { isConformant } from 'test/specs/commonTests'
import $DisplayName from 'src/components/$DisplayName/$DisplayName'
describe('$DisplayName', () => {
- isConformant($DisplayName)
+ isConformant($DisplayName, '$DisplayName')
})
diff --git a/docs/src/utils/componentInfoShape.ts b/docs/src/utils/componentInfoShape.ts
index 2a23314314..4fb7c0282e 100644
--- a/docs/src/utils/componentInfoShape.ts
+++ b/docs/src/utils/componentInfoShape.ts
@@ -17,7 +17,6 @@ const componentInfoShape = PropTypes.shape({
name: PropTypes.string,
}),
),
- constructorName: PropTypes.string.isRequired,
type: PropTypes.string.isRequired,
isParent: PropTypes.bool.isRequired,
isChild: PropTypes.bool.isRequired,
diff --git a/test/specs/commonTests/isConformant.tsx b/test/specs/commonTests/isConformant.tsx
index 5836b629b2..991eb2f47b 100644
--- a/test/specs/commonTests/isConformant.tsx
+++ b/test/specs/commonTests/isConformant.tsx
@@ -1,7 +1,6 @@
import * as _ from 'lodash'
import * as React from 'react'
import { ReactWrapper } from 'enzyme'
-import * as ReactDOMServer from 'react-dom/server'
import isExportedAtTopLevel from './isExportedAtTopLevel'
import {
@@ -28,6 +27,7 @@ export interface Conformant {
/**
* Assert Component conforms to guidelines that are applicable to all components.
* @param {React.Component|Function} Component A component that should conform.
+ * @param {String} componentName A name of a component that should conform.
* @param {Object} [options={}]
* @param {Object} [options.eventTargets={}] Map of events and the child component to target.
* @param {boolean} [options.exportedAtTopLevel=false] Is this component exported as top level API?
@@ -35,7 +35,7 @@ export interface Conformant {
* @param {Object} [options.requiredProps={}] Props required to render Component without errors or warnings.
* @param {boolean} [options.usesWrapperSlot=false] This component uses wrapper slot to wrap the 'meaningful' element.
*/
-export default (Component, options: Conformant = {}) => {
+export default (Component, componentName: string, options: Conformant = {}) => {
const {
eventTargets = {},
exportedAtTopLevel = true,
@@ -77,24 +77,13 @@ export default (Component, options: Conformant = {}) => {
throwError(`Components should export a class or function, got: ${componentType}.`)
}
- // tests depend on Component constructor names, enforce them
- const constructorName = Component.prototype.constructor.name
- if (!constructorName) {
- throwError(
- [
- 'Component is not a named function. This should help identify it:\n\n',
- `${ReactDOMServer.renderToStaticMarkup()}`,
- ].join(''),
- )
- }
-
// ----------------------------------------
// Component info
// ----------------------------------------
// This is pretty ugly because:
// - jest doesn't support custom error messages
// - jest will run all test
- const infoJSONPath = `docs/src/componentInfo/${constructorName}.info.json`
+ const infoJSONPath = `docs/src/componentInfo/${componentName}.info.json`
let info
@@ -137,16 +126,16 @@ export default (Component, options: Conformant = {}) => {
}
// ----------------------------------------
- // Class and file name
+ // Component and file name
// ----------------------------------------
- test(`constructor name matches filename "${constructorName}"`, () => {
- expect(constructorName).toEqual(info.filenameWithoutExt)
+ test(`component name matches filename "${componentName}"`, () => {
+ expect(componentName).toEqual(info.filenameWithoutExt)
})
// find the apiPath in the stardust object
const foundAsSubcomponent = _.isFunction(_.get(stardust, info.apiPath))
- exportedAtTopLevel && isExportedAtTopLevel(constructorName, info.displayName)
+ exportedAtTopLevel && isExportedAtTopLevel(componentName, info.displayName)
if (info.isChild) {
test('is a static component on its parent', () => {
const message =
@@ -489,7 +478,7 @@ export default (Component, options: Conformant = {}) => {
// ----------------------------------------
describe('static displayName (common)', () => {
test('matches constructor name', () => {
- expect(Component.displayName).toEqual(info.constructorName)
+ expect(Component.displayName).toEqual(componentName)
})
})
diff --git a/test/specs/commonTests/isExportedAtTopLevel.tsx b/test/specs/commonTests/isExportedAtTopLevel.tsx
index b576ad3d75..3f31d96fef 100644
--- a/test/specs/commonTests/isExportedAtTopLevel.tsx
+++ b/test/specs/commonTests/isExportedAtTopLevel.tsx
@@ -5,8 +5,8 @@ import * as stardust from 'src/'
// Is exported or private
// ----------------------------------------
// detect components like: stardust.H1
-export default (constructorName: string, displayName: string) => {
- const isTopLevelAPIProp = _.has(stardust, constructorName)
+export default (componentName: string, displayName: string) => {
+ const isTopLevelAPIProp = _.has(stardust, componentName)
// require all components to be exported at the top level
test('is exported at the top level', () => {
diff --git a/test/specs/components/Accordion/Accordion-test.ts b/test/specs/components/Accordion/Accordion-test.ts
index bc1deac06b..0673100351 100644
--- a/test/specs/components/Accordion/Accordion-test.ts
+++ b/test/specs/components/Accordion/Accordion-test.ts
@@ -3,5 +3,5 @@ import { isConformant } from 'test/specs/commonTests'
import Accordion from 'src/components/Accordion/Accordion'
describe('Accordion', () => {
- isConformant(Accordion)
+ isConformant(Accordion, 'Accordion')
})
diff --git a/test/specs/components/Animation/Animation-test.tsx b/test/specs/components/Animation/Animation-test.tsx
index 2f5774e02c..e80979e67a 100644
--- a/test/specs/components/Animation/Animation-test.tsx
+++ b/test/specs/components/Animation/Animation-test.tsx
@@ -3,5 +3,5 @@ import { isConformant } from 'test/specs/commonTests'
import Animation from 'src/components/Animation/Animation'
describe('Animation', () => {
- isConformant(Animation)
+ isConformant(Animation, 'Animation')
})
diff --git a/test/specs/components/Attachment/Attachment-test.tsx b/test/specs/components/Attachment/Attachment-test.tsx
index 19bc3432ff..5822dcfacb 100644
--- a/test/specs/components/Attachment/Attachment-test.tsx
+++ b/test/specs/components/Attachment/Attachment-test.tsx
@@ -8,7 +8,7 @@ import Button from 'src/components/Button/Button'
const attachmentImplementsShorthandProp = implementsShorthandProp(Attachment)
describe('Attachment', () => {
- isConformant(Attachment)
+ isConformant(Attachment, 'Attachment')
attachmentImplementsShorthandProp('header', Text)
attachmentImplementsShorthandProp('description', Text)
attachmentImplementsShorthandProp('icon', Icon, { mapsValueToProp: 'name' })
diff --git a/test/specs/components/Avatar/Avatar-test.tsx b/test/specs/components/Avatar/Avatar-test.tsx
index 63a4fcb7e7..537f95bfae 100644
--- a/test/specs/components/Avatar/Avatar-test.tsx
+++ b/test/specs/components/Avatar/Avatar-test.tsx
@@ -7,7 +7,7 @@ import Image from 'src/components/Image/Image'
const avatarImplementsShorthandProp = implementsShorthandProp(Avatar)
describe('Avatar', () => {
- isConformant(Avatar)
+ isConformant(Avatar, 'Avatar')
avatarImplementsShorthandProp('label', Label)
avatarImplementsShorthandProp('image', Image, { mapsValueToProp: 'src' })
diff --git a/test/specs/components/Button/Button-test.tsx b/test/specs/components/Button/Button-test.tsx
index 3d6984d589..56352fbd7d 100644
--- a/test/specs/components/Button/Button-test.tsx
+++ b/test/specs/components/Button/Button-test.tsx
@@ -16,7 +16,7 @@ import Icon from 'src/components/Icon/Icon'
const buttonImplementsShorthandProp = implementsShorthandProp(Button)
describe('Button', () => {
- isConformant(Button)
+ isConformant(Button, 'Button')
buttonImplementsShorthandProp('icon', Icon, { mapsValueToProp: 'name' })
describe('accessibility', () => {
diff --git a/test/specs/components/Button/ButtonGroup-test.tsx b/test/specs/components/Button/ButtonGroup-test.tsx
index ac4e23c976..a8b6eff4d9 100644
--- a/test/specs/components/Button/ButtonGroup-test.tsx
+++ b/test/specs/components/Button/ButtonGroup-test.tsx
@@ -8,7 +8,7 @@ import { AccessibilityDefinition } from 'src/lib/accessibility/types'
const buttonGroupImplementsCollectionShorthandProp = implementsCollectionShorthandProp(ButtonGroup)
describe('ButtonGroup', () => {
- isConformant(ButtonGroup)
+ isConformant(ButtonGroup, 'ButtonGroup')
buttonGroupImplementsCollectionShorthandProp('buttons', Button)
describe('accessibility', () => {
diff --git a/test/specs/components/Chat/Chat-test.ts b/test/specs/components/Chat/Chat-test.ts
index bdff0c672d..ccff508650 100644
--- a/test/specs/components/Chat/Chat-test.ts
+++ b/test/specs/components/Chat/Chat-test.ts
@@ -9,7 +9,7 @@ import { AccessibilityDefinition } from 'src/lib/accessibility/types'
const chatImplementsCollectionShorthandProp = implementsCollectionShorthandProp(Chat)
describe('Chat', () => {
- isConformant(Chat)
+ isConformant(Chat, 'Chat')
chatImplementsCollectionShorthandProp('items', ChatItem)
describe('accessibility', () => {
diff --git a/test/specs/components/Chat/ChatItem-test.tsx b/test/specs/components/Chat/ChatItem-test.tsx
index dd6e78f310..e160caf934 100644
--- a/test/specs/components/Chat/ChatItem-test.tsx
+++ b/test/specs/components/Chat/ChatItem-test.tsx
@@ -3,5 +3,5 @@ import { isConformant } from 'test/specs/commonTests'
import ChatItem from 'src/components/Chat/ChatItem'
describe('ChatItem', () => {
- isConformant(ChatItem)
+ isConformant(ChatItem, 'ChatItem')
})
diff --git a/test/specs/components/Chat/ChatMessage-test.tsx b/test/specs/components/Chat/ChatMessage-test.tsx
index 419e7a81f9..9df60148ee 100644
--- a/test/specs/components/Chat/ChatMessage-test.tsx
+++ b/test/specs/components/Chat/ChatMessage-test.tsx
@@ -9,7 +9,7 @@ import { AccessibilityDefinition } from 'src/lib/accessibility/types'
import Text from 'src/components/Text/Text'
describe('ChatMessage', () => {
- isConformant(ChatMessage)
+ isConformant(ChatMessage, 'ChatMessage')
implementsShorthandProp(ChatMessage)('avatar', Avatar, { mapsValueToProp: 'name' })
implementsShorthandProp(ChatMessage)('author', Text)
implementsShorthandProp(ChatMessage)('timestamp', Text)
diff --git a/test/specs/components/Divider/Divider-test.tsx b/test/specs/components/Divider/Divider-test.tsx
index c316ab8f93..42737a4e01 100644
--- a/test/specs/components/Divider/Divider-test.tsx
+++ b/test/specs/components/Divider/Divider-test.tsx
@@ -3,5 +3,5 @@ import { isConformant } from 'test/specs/commonTests'
import Divider from 'src/components/Divider/Divider'
describe('Divider', () => {
- isConformant(Divider)
+ isConformant(Divider, 'Divider')
})
diff --git a/test/specs/components/Dropdown/Dropdown-test.tsx b/test/specs/components/Dropdown/Dropdown-test.tsx
index af572790e5..c976b6880c 100644
--- a/test/specs/components/Dropdown/Dropdown-test.tsx
+++ b/test/specs/components/Dropdown/Dropdown-test.tsx
@@ -2,5 +2,5 @@ import { isConformant } from 'test/specs/commonTests'
import Dropdown from 'src/components/Dropdown/Dropdown'
describe('Dropdown', () => {
- isConformant(Dropdown)
+ isConformant(Dropdown, 'Dropdown')
})
diff --git a/test/specs/components/Form/Form-test.tsx b/test/specs/components/Form/Form-test.tsx
index e3e5932d77..f853eded8b 100644
--- a/test/specs/components/Form/Form-test.tsx
+++ b/test/specs/components/Form/Form-test.tsx
@@ -7,6 +7,6 @@ import FormField from 'src/components/Form/FormField'
const formImplementsCollectionShorthandProp = implementsCollectionShorthandProp(Form)
describe('Form', () => {
- isConformant(Form)
+ isConformant(Form, 'Form')
formImplementsCollectionShorthandProp('fields', FormField, { mapsValueToProp: 'label' })
})
diff --git a/test/specs/components/Form/FormField-test.tsx b/test/specs/components/Form/FormField-test.tsx
index 554bbe730d..897b63985b 100644
--- a/test/specs/components/Form/FormField-test.tsx
+++ b/test/specs/components/Form/FormField-test.tsx
@@ -12,7 +12,7 @@ const getFormField = (control: ComponentClass | string) =>
mountWithProvider().find('FormField')
describe('FormField', () => {
- isConformant(FormField)
+ isConformant(FormField, 'FormField')
formFieldImplementsShorthandProp('label', Text)
formFieldImplementsShorthandProp('message', Text)
formFieldImplementsShorthandProp('control', Slot, { mapsValueToProp: 'children' })
diff --git a/test/specs/components/Grid/Grid-test.tsx b/test/specs/components/Grid/Grid-test.tsx
index 4bb4c17cd1..f628eaa812 100644
--- a/test/specs/components/Grid/Grid-test.tsx
+++ b/test/specs/components/Grid/Grid-test.tsx
@@ -3,5 +3,5 @@ import { isConformant } from 'test/specs/commonTests'
import Grid from 'src/components/Grid/Grid'
describe('Grid', () => {
- isConformant(Grid)
+ isConformant(Grid, 'Grid')
})
diff --git a/test/specs/components/Header/Header-test.ts b/test/specs/components/Header/Header-test.ts
index 218027ce4c..1231f9dfa9 100644
--- a/test/specs/components/Header/Header-test.ts
+++ b/test/specs/components/Header/Header-test.ts
@@ -3,5 +3,5 @@ import { isConformant } from 'test/specs/commonTests'
import Header from 'src/components/Header/Header'
describe('Header', () => {
- isConformant(Header)
+ isConformant(Header, 'Header')
})
diff --git a/test/specs/components/Header/HeaderDescription-test.ts b/test/specs/components/Header/HeaderDescription-test.ts
index cf077c953a..db97406d26 100644
--- a/test/specs/components/Header/HeaderDescription-test.ts
+++ b/test/specs/components/Header/HeaderDescription-test.ts
@@ -3,5 +3,5 @@ import { isConformant } from 'test/specs/commonTests'
import HeaderDescription from 'src/components/Header/HeaderDescription'
describe('HeaderDescription', () => {
- isConformant(HeaderDescription)
+ isConformant(HeaderDescription, 'HeaderDescription')
})
diff --git a/test/specs/components/Icon/Icon-test.tsx b/test/specs/components/Icon/Icon-test.tsx
index 927aa65f80..1791b184b3 100644
--- a/test/specs/components/Icon/Icon-test.tsx
+++ b/test/specs/components/Icon/Icon-test.tsx
@@ -6,7 +6,7 @@ import { mountWithProviderAndGetComponent } from 'test/utils'
import { ThemeInput } from 'src/themes/types'
describe('Icon', () => {
- isConformant(Icon)
+ isConformant(Icon, 'Icon')
describe('accessibility', () => {
handlesAccessibility(Icon, {
diff --git a/test/specs/components/Image/Image-test.tsx b/test/specs/components/Image/Image-test.tsx
index 6d8c7cd8fc..731bca887b 100644
--- a/test/specs/components/Image/Image-test.tsx
+++ b/test/specs/components/Image/Image-test.tsx
@@ -5,7 +5,7 @@ import Image from 'src/components/Image/Image'
import { mountWithProviderAndGetComponent } from 'test/utils'
describe('Image', () => {
- isConformant(Image)
+ isConformant(Image, 'Image')
describe('accessibility', () => {
handlesAccessibility(Image, {
diff --git a/test/specs/components/Input/Input-test.tsx b/test/specs/components/Input/Input-test.tsx
index f75e6df844..622c10d305 100644
--- a/test/specs/components/Input/Input-test.tsx
+++ b/test/specs/components/Input/Input-test.tsx
@@ -30,7 +30,7 @@ const setUserInputValue = (inputComp: ReactWrapper, value: string) => {
describe('Input', () => {
describe('conformance', () => {
- isConformant(Input, {
+ isConformant(Input, 'Input', {
eventTargets: { onChange: 'input' },
})
})
diff --git a/test/specs/components/ItemLayout/ItemLayout-test.ts b/test/specs/components/ItemLayout/ItemLayout-test.ts
index 6065907573..c624b934da 100644
--- a/test/specs/components/ItemLayout/ItemLayout-test.ts
+++ b/test/specs/components/ItemLayout/ItemLayout-test.ts
@@ -3,5 +3,5 @@ import { isConformant } from 'test/specs/commonTests'
import ItemLayout from 'src/components/ItemLayout/ItemLayout'
describe('ItemLayout', () => {
- isConformant(ItemLayout)
+ isConformant(ItemLayout, 'ItemLayout')
})
diff --git a/test/specs/components/Label/Label-test.tsx b/test/specs/components/Label/Label-test.tsx
index 7ff504d5ee..1b3e8bc7ef 100644
--- a/test/specs/components/Label/Label-test.tsx
+++ b/test/specs/components/Label/Label-test.tsx
@@ -10,7 +10,7 @@ import { implementsShorthandProp } from '../../commonTests'
const labelImplementsShorthandProp = implementsShorthandProp(Label)
describe('Label', () => {
- isConformant(Label)
+ isConformant(Label, 'Label')
labelImplementsShorthandProp('icon', Icon, { mapsValueToProp: 'name' })
labelImplementsShorthandProp('image', Image, { mapsValueToProp: 'src' })
diff --git a/test/specs/components/Layout/Layout-test.ts b/test/specs/components/Layout/Layout-test.ts
index 20910383eb..3872b730d2 100644
--- a/test/specs/components/Layout/Layout-test.ts
+++ b/test/specs/components/Layout/Layout-test.ts
@@ -3,5 +3,5 @@ import { isConformant } from 'test/specs/commonTests'
import Layout from 'src/components/Layout/Layout'
describe('Layout', () => {
- isConformant(Layout)
+ isConformant(Layout, 'Layout')
})
diff --git a/test/specs/components/List/List-test.ts b/test/specs/components/List/List-test.ts
index 01de79309c..ea48cc388d 100644
--- a/test/specs/components/List/List-test.ts
+++ b/test/specs/components/List/List-test.ts
@@ -7,7 +7,7 @@ import ListItem from 'src/components/List/ListItem'
const listImplementsCollectionShorthandProp = implementsCollectionShorthandProp(List)
describe('List', () => {
- isConformant(List)
+ isConformant(List, 'List')
handlesAccessibility(List, { defaultRootRole: 'list' })
listImplementsCollectionShorthandProp('items', ListItem, { mapsValueToProp: 'main' })
})
diff --git a/test/specs/components/List/ListItem-test.ts b/test/specs/components/List/ListItem-test.ts
index 19e5922790..067d054cee 100644
--- a/test/specs/components/List/ListItem-test.ts
+++ b/test/specs/components/List/ListItem-test.ts
@@ -3,6 +3,6 @@ import { isConformant, handlesAccessibility } from 'test/specs/commonTests'
import ListItem from 'src/components/List/ListItem'
describe('ListItem', () => {
- isConformant(ListItem)
+ isConformant(ListItem, 'ListItem')
handlesAccessibility(ListItem, { defaultRootRole: 'listitem' })
})
diff --git a/test/specs/components/Menu/Menu-test.tsx b/test/specs/components/Menu/Menu-test.tsx
index 1d32d8ee07..78e107e8ff 100644
--- a/test/specs/components/Menu/Menu-test.tsx
+++ b/test/specs/components/Menu/Menu-test.tsx
@@ -12,7 +12,7 @@ import { AccessibilityDefinition } from 'src/lib/accessibility/types'
const menuImplementsCollectionShorthandProp = implementsCollectionShorthandProp(Menu)
describe('Menu', () => {
- isConformant(Menu)
+ isConformant(Menu, 'Menu')
menuImplementsCollectionShorthandProp('items', MenuItem)
const getItems = () => [
diff --git a/test/specs/components/Menu/MenuItem-test.tsx b/test/specs/components/Menu/MenuItem-test.tsx
index d85082d9e4..685c860bee 100644
--- a/test/specs/components/Menu/MenuItem-test.tsx
+++ b/test/specs/components/Menu/MenuItem-test.tsx
@@ -6,7 +6,7 @@ import MenuItem from 'src/components/Menu/MenuItem'
import { toolbarButtonBehavior, tabBehavior } from '../../../../src/lib/accessibility'
describe('MenuItem', () => {
- isConformant(MenuItem, {
+ isConformant(MenuItem, 'MenuItem', {
eventTargets: {
onClick: 'a',
},
diff --git a/test/specs/components/Popup/PopupContent-test.ts b/test/specs/components/Popup/PopupContent-test.ts
index 992db9cccd..789996c320 100644
--- a/test/specs/components/Popup/PopupContent-test.ts
+++ b/test/specs/components/Popup/PopupContent-test.ts
@@ -2,5 +2,5 @@ import { isConformant } from 'test/specs/commonTests'
import PopupContent from 'src/components/Popup/PopupContent'
describe('PopupContent', () => {
- isConformant(PopupContent, { rendersPortal: true })
+ isConformant(PopupContent, 'PopupContent', { rendersPortal: true })
})
diff --git a/test/specs/components/RadioGroup/RadioGroup-test.tsx b/test/specs/components/RadioGroup/RadioGroup-test.tsx
index bfebdd896d..6e7bf07526 100644
--- a/test/specs/components/RadioGroup/RadioGroup-test.tsx
+++ b/test/specs/components/RadioGroup/RadioGroup-test.tsx
@@ -42,7 +42,7 @@ const getShorthandItems = (props?: { disabledItem?: number }) => [
]
describe('RadioGroup', () => {
- isConformant(RadioGroup)
+ isConformant(RadioGroup, 'RadioGroup')
describe('accessibility', () => {
handlesAccessibility(RadioGroup, {
diff --git a/test/specs/components/RadioGroup/RadioGroupItem-test.ts b/test/specs/components/RadioGroup/RadioGroupItem-test.ts
index bb2ee4a6f5..5340c3b7c4 100644
--- a/test/specs/components/RadioGroup/RadioGroupItem-test.ts
+++ b/test/specs/components/RadioGroup/RadioGroupItem-test.ts
@@ -3,7 +3,7 @@ import { isConformant, handlesAccessibility } from 'test/specs/commonTests'
import RadioGroupItem from 'src/components/RadioGroup/RadioGroupItem'
describe('RadioGroupItem', () => {
- isConformant(RadioGroupItem)
+ isConformant(RadioGroupItem, 'RadioGroupItem')
describe('accessibility', () => {
handlesAccessibility(RadioGroupItem, {
diff --git a/test/specs/components/Segment/Segment-test.ts b/test/specs/components/Segment/Segment-test.ts
index b69aff7639..34bae7e170 100644
--- a/test/specs/components/Segment/Segment-test.ts
+++ b/test/specs/components/Segment/Segment-test.ts
@@ -3,5 +3,5 @@ import { isConformant } from 'test/specs/commonTests'
import Segment from 'src/components/Segment/Segment'
describe('Segment', () => {
- isConformant(Segment)
+ isConformant(Segment, 'Segment')
})
diff --git a/test/specs/components/Slot/Slot-test.ts b/test/specs/components/Slot/Slot-test.ts
index 04630c3aae..12e1d62ae8 100644
--- a/test/specs/components/Slot/Slot-test.ts
+++ b/test/specs/components/Slot/Slot-test.ts
@@ -8,7 +8,7 @@ describe('Slot', () => {
mount(factoryFn(val, options)).find(Slot)
xdescribe('is conformant', () => {
- isConformant(Slot, { exportedAtTopLevel: false })
+ isConformant(Slot, 'Slot', { exportedAtTopLevel: false })
})
describe(`create`, () => {
diff --git a/test/specs/components/Status/Status-test.tsx b/test/specs/components/Status/Status-test.tsx
index 019bc0511e..ba598044a8 100644
--- a/test/specs/components/Status/Status-test.tsx
+++ b/test/specs/components/Status/Status-test.tsx
@@ -3,5 +3,5 @@ import { isConformant } from 'test/specs/commonTests'
import Status from 'src/components/Status/Status'
describe('Status', () => {
- isConformant(Status)
+ isConformant(Status, 'Status')
})
diff --git a/test/specs/components/Text/Text-test.tsx b/test/specs/components/Text/Text-test.tsx
index e179ec4d2b..1ada4b8532 100644
--- a/test/specs/components/Text/Text-test.tsx
+++ b/test/specs/components/Text/Text-test.tsx
@@ -6,7 +6,7 @@ import { mountWithProvider } from 'test/utils'
import Text from 'src/components/Text/Text'
describe('Text', () => {
- isConformant(Text)
+ isConformant(Text, 'Text')
test('renders children', () => {
expect(mountWithProvider(children).text()).toEqual('children')
diff --git a/test/specs/components/Tree/Tree-test.tsx b/test/specs/components/Tree/Tree-test.tsx
index 0999e2b17f..493a271b90 100644
--- a/test/specs/components/Tree/Tree-test.tsx
+++ b/test/specs/components/Tree/Tree-test.tsx
@@ -3,5 +3,5 @@ import { isConformant } from 'test/specs/commonTests'
import Tree from 'src/components/Tree/Tree'
describe('Tree', () => {
- isConformant(Tree)
+ isConformant(Tree, 'Tree')
})