Move farmers delight to bworld
This commit is contained in:
@@ -136,12 +136,12 @@ Deno.test("/give suggests item ids as they're typed", async () => {
|
||||
const ids = (text: string) => suggest(text).suggestions.map((s: { text: string }) => s.text);
|
||||
assertEquals(ids("/give ").length, 100);
|
||||
assert(ids("/give bworld:sto").includes("bworld:stone"));
|
||||
assert(ids("/give farmersdelight:cab").includes("farmersdelight:cabbage"));
|
||||
assert(ids("/give bworld:cab").includes("bworld:cabbage"));
|
||||
assert(!ids("/give bworld:a").includes("bworld:air"));
|
||||
assertEquals(suggest("/give farmersdelight:tom").suggestions.map((s: { text: string }) => s.text), [
|
||||
"farmersdelight:tomato",
|
||||
"farmersdelight:tomato_sauce",
|
||||
"farmersdelight:tomato_seeds",
|
||||
assertEquals(suggest("/give bworld:tom").suggestions.map((s: { text: string }) => s.text), [
|
||||
"bworld:tomato",
|
||||
"bworld:tomato_sauce",
|
||||
"bworld:tomato_seeds",
|
||||
]);
|
||||
|
||||
assertEquals(suggest("/gi").suggestions, [{ text: "give" }]);
|
||||
|
||||
Reference in New Issue
Block a user