mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-22 16:06:19 -05:00
Moving OTP and Vin decoder to calculators to save Navbar space. Reworking calculators to purpose groups, and adding colors.
This commit is contained in:
parent
c95afc7f62
commit
05bb65fc03
8 changed files with 373 additions and 308 deletions
14
app/src/components/calculators/VinDecoderCalculator.test.js
Normal file
14
app/src/components/calculators/VinDecoderCalculator.test.js
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
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();
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue