Implement tags !
This commit is contained in:
@@ -1,9 +1,12 @@
|
||||
// the recipe viewer mod reads every mod's recipes, its own types included
|
||||
import { assert, assertEquals } from "@std/assert";
|
||||
import { category_name, inputs, outputs } from "../mods/recipe_viewer/scripts/client.ts";
|
||||
import { category_name, inputs as recipe_inputs, outputs } from "../mods/recipe_viewer/scripts/client.ts";
|
||||
import { tag_api } from "$/common/tags.ts";
|
||||
import { test_game } from "./helpers.ts";
|
||||
|
||||
const ids = (ingredients: { ids: string[] }[]) => ingredients.map((i) => i.ids.join("|"));
|
||||
// deno-lint-ignore no-explicit-any
|
||||
const inputs = (recipe: any) => recipe_inputs(recipe, tag_api());
|
||||
|
||||
Deno.test("the recipe viewer finds what makes and uses an item, in any recipe type", async () => {
|
||||
const { game } = await test_game("mods");
|
||||
|
||||
Reference in New Issue
Block a user