mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-22 16:06:19 -05:00
15 lines
639 B
JavaScript
15 lines
639 B
JavaScript
|
|
import React from "react";
|
||
|
|
import {screen} from "@testing-library/react";
|
||
|
|
import {renderWithProviders} from "../../test-utils";
|
||
|
|
import {VinDecoderCalculator} from "./VinDecoderCalculator";
|
||
|
|
|
||
|
|
describe('VinDecoderCalculator', () => {
|
||
|
|
test('renders the decoder and prompts for input', () => {
|
||
|
|
// An empty VIN never triggers an API call (useVINDecoder returns early), so this
|
||
|
|
// renders without any fetch mocking.
|
||
|
|
renderWithProviders(<VinDecoderCalculator/>);
|
||
|
|
expect(screen.getByText('VIN Number Decoder')).toBeTruthy();
|
||
|
|
expect(screen.getByText('Enter a VIN number above')).toBeTruthy();
|
||
|
|
});
|
||
|
|
});
|