Tooltip api
This commit is contained in:
@@ -80,9 +80,6 @@ Deno.test("a full fluid container sells for its own value and its fluid's, round
|
||||
// a jar of syrup is 2.5, and a flask of it is the flask's 2 and the syrup's 10
|
||||
assertEquals([value(JAR), value(JAR, FULL)], [undefined, 3]);
|
||||
assertEquals([value(FLASK), value(FLASK, FULL)], [2, 12]);
|
||||
const jar = new ItemStack(JAR);
|
||||
jar.data = FULL;
|
||||
assertEquals(item_tooltip(jar).map((line) => line.text), ["Jar", "Syrup, 250 mB", "3"]);
|
||||
});
|
||||
|
||||
Deno.test("exchange_held puts the result in the hand from a stack of one, and in the inventory from more", async () => {
|
||||
|
||||
Reference in New Issue
Block a user