|
- import * as React from 'react';
- import {
- render,
- screen
- } from '@testing-library/react';
- import '@testing-library/jest-dom';
- import {
- MaskedTextInput
- } from '.';
-
- describe('MaskedTextInput', () => {
- it('should render an input', () => {
- render(<MaskedTextInput />);
- const textbox: HTMLInputElement = screen.getByTestId('input');
- expect(textbox).toBeInTheDocument();
- expect(textbox.type).toBe('password');
- });
- });
|