@@ -100,10 +100,12 @@ describe("splitting choice abilities", () => {
|
||||
expect(group).toBeTruthy();
|
||||
expect(group.size).toBeGreaterThan(1);
|
||||
|
||||
// Options print as plain text: GW's ^^keyword^^ / **emphasis** markers
|
||||
// are resolved, not passed through as punctuation.
|
||||
for (const text of group.values()) {
|
||||
expect(JSON.stringify(text)).not.toMatch(/\^\^|\*\*/);
|
||||
// The option text keeps GW's ^^keyword^^ / **emphasis** markers for the
|
||||
// renderer to format; only the row titles are plain text, since those
|
||||
// render as-is.
|
||||
expect([...group.values()].join("\n")).toMatch(/\^\^/);
|
||||
for (const name of group.keys()) {
|
||||
expect(name).not.toMatch(/\^\^|\*\*/);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user