diff --git a/components/lib/avatar/Avatar.spec.js b/components/lib/avatar/Avatar.spec.js new file mode 100644 index 0000000000..a8284e9706 --- /dev/null +++ b/components/lib/avatar/Avatar.spec.js @@ -0,0 +1,23 @@ +import '@testing-library/jest-dom'; +import { Badge } from '../badge/Badge'; +import { Avatar } from './Avatar'; + +import { snapshot } from '../../test'; + +describe('Avatar', () => { + snapshot(, 'default'); + snapshot(, 'label'); + snapshot(, 'icon'); + snapshot(, 'image'); + snapshot(, 'size large'); + snapshot(, 'size xlarge'); + snapshot(, 'shape square'); + snapshot(, 'shape cirle'); + snapshot(Content, 'templating'); + snapshot( + + + , + 'badge' + ); +}); diff --git a/components/lib/avatar/__snapshots__/Avatar.spec.js.snap b/components/lib/avatar/__snapshots__/Avatar.spec.js.snap new file mode 100644 index 0000000000..e2f3eb2b78 --- /dev/null +++ b/components/lib/avatar/__snapshots__/Avatar.spec.js.snap @@ -0,0 +1,108 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Avatar badge 1`] = ` +
+
+ avatar + + 4 + +
+
+`; + +exports[`Avatar default 1`] = ` +
+
+
+`; + +exports[`Avatar icon 1`] = ` +
+
+ +
+
+`; + +exports[`Avatar image 1`] = ` +
+
+ avatar +
+
+`; + +exports[`Avatar label 1`] = ` +
+
+ + P + +
+
+`; + +exports[`Avatar shape cirle 1`] = ` +
+
+
+`; + +exports[`Avatar shape square 1`] = ` +
+
+
+`; + +exports[`Avatar size large 1`] = ` +
+
+
+`; + +exports[`Avatar size xlarge 1`] = ` +
+
+
+`; + +exports[`Avatar templating 1`] = ` +
+
+ Content +
+
+`; diff --git a/components/lib/avatargroup/AvatarGroup.spec.js b/components/lib/avatargroup/AvatarGroup.spec.js new file mode 100644 index 0000000000..8daaad6565 --- /dev/null +++ b/components/lib/avatargroup/AvatarGroup.spec.js @@ -0,0 +1,18 @@ +import '@testing-library/jest-dom'; +import { Avatar } from '../avatar/Avatar'; +import { AvatarGroup } from './AvatarGroup'; + +import { snapshot } from '../../test'; + +describe('AvatarGroup', () => { + snapshot(, 'default'); + snapshot( + + + + + + , + 'group' + ); +}); diff --git a/components/lib/avatargroup/__snapshots__/AvatarGroup.spec.js.snap b/components/lib/avatargroup/__snapshots__/AvatarGroup.spec.js.snap new file mode 100644 index 0000000000..2575c1cf30 --- /dev/null +++ b/components/lib/avatargroup/__snapshots__/AvatarGroup.spec.js.snap @@ -0,0 +1,51 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AvatarGroup default 1`] = ` +
+
+
+`; + +exports[`AvatarGroup group 1`] = ` +
+
+
+ + P + +
+
+ +
+
+ avatar +
+
+ + +2 + +
+
+
+`; diff --git a/components/lib/tag/Tag.spec.js b/components/lib/tag/Tag.spec.js index faaa168057..6d8e478169 100644 --- a/components/lib/tag/Tag.spec.js +++ b/components/lib/tag/Tag.spec.js @@ -3,7 +3,7 @@ import { Tag } from './Tag'; import { snapshot } from '../../test'; -describe('Divider', () => { +describe('Tag', () => { snapshot(, 'default'); snapshot(, 'value'); snapshot(, 'sevrity success'); @@ -16,6 +16,6 @@ describe('Divider', () => {
hello
, - 'children' + 'templating' ); }); diff --git a/components/lib/tag/__snapshots__/Tag.spec.js.snap b/components/lib/tag/__snapshots__/Tag.spec.js.snap index 74c0d886d4..0b9a92cfbe 100644 --- a/components/lib/tag/__snapshots__/Tag.spec.js.snap +++ b/components/lib/tag/__snapshots__/Tag.spec.js.snap @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`Divider children 1`] = ` +exports[`Tag default 1`] = `
- -
- hello -
-
+
`; -exports[`Divider default 1`] = ` +exports[`Tag icon 1`] = `
+ @@ -30,14 +29,11 @@ exports[`Divider default 1`] = `
`; -exports[`Divider icon 1`] = ` +exports[`Tag rounded 1`] = `
- @@ -46,10 +42,10 @@ exports[`Divider icon 1`] = `
`; -exports[`Divider rounded 1`] = ` +exports[`Tag sevrity danger 1`] = `
`; -exports[`Divider sevrity danger 1`] = ` +exports[`Tag sevrity info 1`] = `
`; -exports[`Divider sevrity info 1`] = ` +exports[`Tag sevrity success 1`] = `
`; -exports[`Divider sevrity success 1`] = ` +exports[`Tag sevrity warning 1`] = `
`; -exports[`Divider sevrity warning 1`] = ` +exports[`Tag templating 1`] = `
- + +
+ hello +
+
`; -exports[`Divider value 1`] = ` +exports[`Tag value 1`] = `