mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
test(code-snippet): add unit tests
This commit is contained in:
parent
936a681194
commit
b15bf65f88
11 changed files with 232 additions and 21 deletions
16
tests/CodeSnippet/CodeSnippetWithWrapText.test.svelte
Normal file
16
tests/CodeSnippet/CodeSnippetWithWrapText.test.svelte
Normal file
|
@ -0,0 +1,16 @@
|
|||
<script lang="ts">
|
||||
import { CodeSnippet } from "carbon-components-svelte";
|
||||
</script>
|
||||
|
||||
<CodeSnippet
|
||||
type="multi"
|
||||
wrapText={true}
|
||||
code={`node -v
|
||||
npm -v
|
||||
yarn -v
|
||||
git --version
|
||||
python --version
|
||||
java -version
|
||||
docker --version
|
||||
kubectl version`}
|
||||
/>
|
Loading…
Add table
Add a link
Reference in a new issue