@viamrobotics/prime-core
Advanced tools
Comparing version 0.0.171 to 0.0.172
@@ -49,2 +49,15 @@ import { describe, it, expect, vi } from 'vitest'; | ||
}); | ||
it('Re-renders code block when code prop updates', async () => { | ||
const { rerender } = render(CodeSnippet, common); | ||
const initialCode = screen.getByText(common.code); | ||
expect(initialCode).toBeInTheDocument(); | ||
const newCode = '{ their: "json" }'; | ||
await rerender({ | ||
...common, | ||
code: newCode, | ||
}); | ||
const updatedCode = screen.getByText(newCode); | ||
expect(updatedCode).toBeInTheDocument(); | ||
expect(screen.queryByText(common.code)).not.toBeInTheDocument(); | ||
}); | ||
}); |
@@ -36,2 +36,3 @@ type Path = string; | ||
readonly bug: string; | ||
readonly 'bug-outline': string; | ||
readonly broadcast: string; | ||
@@ -38,0 +39,0 @@ readonly 'card-text-outline': string; |
@@ -31,2 +31,3 @@ import * as MDI from '@mdi/js'; | ||
bug: MDI.mdiBug, | ||
'bug-outline': MDI.mdiBugOutline, | ||
broadcast: MDI.mdiBroadcast, | ||
@@ -33,0 +34,0 @@ 'card-text-outline': MDI.mdiCardTextOutline, |
{ | ||
"name": "@viamrobotics/prime-core", | ||
"version": "0.0.171", | ||
"version": "0.0.172", | ||
"repository": { | ||
@@ -49,3 +49,3 @@ "type": "git", | ||
"@testing-library/jest-dom": "^6.1.5", | ||
"@testing-library/svelte": "^4.1.0", | ||
"@testing-library/svelte": "^5.2.6", | ||
"@testing-library/user-event": "^14.5.1", | ||
@@ -52,0 +52,0 @@ "@types/lodash-es": "^4.17.12", |
Sorry, the diff of this file is not supported yet
392871
7202