Commit e046aa9c authored by Manoj Pandian Sakthivel's avatar Manoj Pandian Sakthivel
Browse files

Update SvgrMock module name

parent 4df5f683
Pipeline #146172 passed with stages
in 4 minutes and 56 seconds
......@@ -41,9 +41,8 @@ describe('<ExternalLink />', () => {
expect(
container
.querySelector(`icon-mock`)
?.getAttribute('classname')
?.includes(defaultProps.classNames?.icon as string)
.querySelector(`svg`)
?.classList.contains(defaultProps.classNames?.icon as string)
).toBeTruthy();
expect(
......
......@@ -67,9 +67,8 @@ describe('<ExternalReference />', () => {
expect(
container
.querySelector(`.externalLinkContainer icon-mock`)
?.getAttribute('classname')
?.includes(defaultProps.classNames?.icon as string)
.querySelector(`.externalLinkContainer svg`)
?.classList.contains(defaultProps.classNames?.icon as string)
).toBeTruthy();
expect(
......
......@@ -3,6 +3,6 @@
// https://github.com/facebook/jest/issues/5258#issuecomment-356251559
module.exports = {
default: 'icon-mock',
ReactComponent: 'icon-mock'
default: 'svg',
ReactComponent: 'svg'
};
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment