Skip to content

Commit

Permalink
refactor: Convert label to TypeScript
Browse files Browse the repository at this point in the history
  • Loading branch information
drikusroor committed Jul 5, 2024
1 parent d012ac6 commit 370f1d2
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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', () => {
Expand All @@ -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', () => {
Expand Down

0 comments on commit 370f1d2

Please sign in to comment.