@viamrobotics/prime-core
Advanced tools
Comparing version 0.0.163 to 0.0.164
@@ -49,11 +49,11 @@ import { describe, it, expect, vi } from 'vitest'; | ||
}); | ||
it('Renders the legend correctly', () => { | ||
it('Renders the label correctly', () => { | ||
render(ToggleButtons, common); | ||
expect(screen.getByText('Test toggle buttons')).toBeVisible(); | ||
}); | ||
it('Renders the legend correctly when disabled', () => { | ||
it('Renders the label correctly when disabled', () => { | ||
render(ToggleButtons, { ...common, disabled: true }); | ||
const legend = screen.getByText('Test toggle buttons'); | ||
expect(legend).toHaveClass('text-disabled-dark cursor-not-allowed'); | ||
const label = screen.getByText('Test toggle buttons'); | ||
expect(label).toHaveClass('text-disabled-dark cursor-not-allowed'); | ||
}); | ||
}); |
@@ -17,3 +17,3 @@ import { SvelteComponent } from "svelte"; | ||
slots: { | ||
label: {}; | ||
legend: {}; | ||
}; | ||
@@ -20,0 +20,0 @@ }; |
{ | ||
"name": "@viamrobotics/prime-core", | ||
"version": "0.0.163", | ||
"version": "0.0.164", | ||
"repository": { | ||
@@ -5,0 +5,0 @@ "type": "git", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package