Moving OTP and Vin decoder to calculators to save Navbar space. Reworking calculators to purpose groups, and adding colors.

This commit is contained in:
Roland 2026-07-01 18:48:06 -06:00
parent c95afc7f62
commit 05bb65fc03
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
8 changed files with 373 additions and 308 deletions

View 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();
});
});