mirror of https://github.com/kern/filepizza
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
415 B
TypeScript
13 lines
415 B
TypeScript
/// <reference types="@testing-library/jest-dom" />
|
|
import React from 'react'
|
|
import { render } from '@testing-library/react'
|
|
import { describe, it, expect } from 'vitest'
|
|
import TypeBadge from '../../src/components/TypeBadge'
|
|
|
|
describe('TypeBadge', () => {
|
|
it('renders type', () => {
|
|
const { getByText } = render(<TypeBadge type="image/png" />)
|
|
expect(getByText('image/png')).toBeInTheDocument()
|
|
})
|
|
})
|