diff --git a/frontend/src/util/label.test.js b/frontend/src/util/label.test.ts similarity index 86% rename from frontend/src/util/label.test.js rename to frontend/src/util/label.test.ts index cae5b477c..c6cdb4ae0 100644 --- a/frontend/src/util/label.test.js +++ b/frontend/src/util/label.test.ts @@ -1,6 +1,8 @@ import { render } from '@testing-library/react'; import { renderLabel } from "./label"; +import { describe, it, expect } from 'vitest'; + describe('renderLabel', () => { it('renders FontAwesome label correctly', () => { @@ -13,7 +15,7 @@ describe('renderLabel', () => { const { getByText } = render(renderLabel(label)); const labelElement = getByText(label) - expect(document.body.contains(labelElement)).to.be.true; + expect(document.body.contains(labelElement)).toBe(true); }); it('handles empty or undefined labels correctly', () => {