chore: Modify the oldspec to do nested as an option

This commit is contained in:
BluJ
2023-04-24 16:07:35 -06:00
parent 50cfc7aa43
commit 5f5cfe77a3
4 changed files with 22 additions and 18 deletions

View File

@@ -5,7 +5,7 @@ import {
unionValueKey,
} from "../config/configTypes";
import { deepMerge } from "../util";
import { InputSpec, matchInputSpec, testListUnion } from "./output";
import { InputSpec, matchInputSpec } from "./output";
export type IfEquals<T, U, Y = unknown, N = never> = (<G>() => G extends T
? 1
@@ -97,9 +97,6 @@ describe("Inputs", () => {
},
};
test("Test just the input unions", () => {
testListUnion.validator().unsafeCast(validInput.testListUnion);
});
test("test valid input", () => {
const output = matchInputSpec.unsafeCast(validInput);
expect(output).toEqual(validInput);