mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-05-27 07:36:34 +00:00
Migrated DeleteServerButton to react testing library
This commit is contained in:
56
test/servers/__snapshots__/DeleteServerButton.test.tsx.snap
Normal file
56
test/servers/__snapshots__/DeleteServerButton.test.tsx.snap
Normal file
@@ -0,0 +1,56 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`<DeleteServerButton /> renders expected content 1`] = `
|
||||
<span>
|
||||
<span
|
||||
class="button"
|
||||
>
|
||||
Foo bar
|
||||
</span>
|
||||
</span>
|
||||
`;
|
||||
|
||||
exports[`<DeleteServerButton /> renders expected content 2`] = `
|
||||
<span>
|
||||
<span
|
||||
class="button"
|
||||
>
|
||||
baz
|
||||
</span>
|
||||
</span>
|
||||
`;
|
||||
|
||||
exports[`<DeleteServerButton /> renders expected content 3`] = `
|
||||
<span>
|
||||
<span
|
||||
class="button"
|
||||
>
|
||||
something
|
||||
</span>
|
||||
</span>
|
||||
`;
|
||||
|
||||
exports[`<DeleteServerButton /> renders expected content 4`] = `
|
||||
<span>
|
||||
<svg
|
||||
aria-hidden="true"
|
||||
class="svg-inline--fa fa-circle-minus fa-fw "
|
||||
data-icon="circle-minus"
|
||||
data-prefix="fas"
|
||||
focusable="false"
|
||||
role="img"
|
||||
viewBox="0 0 512 512"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
>
|
||||
<path
|
||||
d="M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM168 232C154.7 232 144 242.7 144 256C144 269.3 154.7 280 168 280H344C357.3 280 368 269.3 368 256C368 242.7 357.3 232 344 232H168z"
|
||||
fill="currentColor"
|
||||
/>
|
||||
</svg>
|
||||
<span
|
||||
class="button"
|
||||
>
|
||||
Remove this server
|
||||
</span>
|
||||
</span>
|
||||
`;
|
||||
Reference in New Issue
Block a user