Add Hario Switch to the brewer picker (immersion)
Test and deploy / test-and-deploy (push) Successful in 53s
Test and deploy / test-and-deploy (push) Successful in 53s
Also test that every brew method ships a silhouette so the picker can never render an empty tile. Co-Authored-By: Claude Fable 5 <[email protected]>
This commit is contained in:
co-authored by
Claude Fable 5
parent
38c7d01e03
commit
16d5af83f7
@@ -102,6 +102,17 @@ test("brews: validation, update, filter by bean, method taxonomy", async () => {
|
||||
assert.equal(methods.status, 200);
|
||||
assert.equal(methods.body.categories.length, 3);
|
||||
assert.equal(methods.body.methods.some((m) => m.key === "moka"), true);
|
||||
const harioSwitch = methods.body.methods.find((m) => m.key === "hario-switch");
|
||||
assert.equal(harioSwitch?.category, "immersion");
|
||||
|
||||
// Every method must have a silhouette so the picker never renders an empty tile
|
||||
const { BREW_METHODS, BREW_SILHOUETTES } = await import("../shared/brew-data.js");
|
||||
for (const method of BREW_METHODS)
|
||||
assert.equal(
|
||||
BREW_SILHOUETTES[method.key]?.length > 0,
|
||||
true,
|
||||
`missing silhouette for ${method.key}`,
|
||||
);
|
||||
|
||||
// Unknown method rejected
|
||||
assert.equal(
|
||||
|
||||
Reference in New Issue
Block a user