Refactor campaign recipient and review presentation
This commit is contained in:
@@ -1,9 +1,13 @@
|
||||
import { readFileSync } from "node:fs";
|
||||
|
||||
const source = readFileSync(
|
||||
new URL("../src/features/campaigns/RecipientDataPage.tsx", import.meta.url),
|
||||
"utf8"
|
||||
).replace(/\s+/g, " ");
|
||||
const source = [
|
||||
"../src/features/campaigns/RecipientDataPage.tsx",
|
||||
"../src/features/campaigns/recipients/RecipientAddressEditor.tsx",
|
||||
"../src/features/campaigns/recipients/recipientProfileColumns.tsx"
|
||||
]
|
||||
.map((path) => readFileSync(new URL(path, import.meta.url), "utf8"))
|
||||
.join("\n")
|
||||
.replace(/\s+/g, " ");
|
||||
|
||||
function assertIncludes(fragment, message) {
|
||||
if (!source.includes(fragment.replace(/\s+/g, " "))) throw new Error(message);
|
||||
|
||||
Reference in New Issue
Block a user