fix: remove XFT use-car submissions
This commit is contained in:
@@ -790,7 +790,8 @@ test("Xft submission routes every supported template kind to its documented crea
|
||||
throw new Error(`unexpected ${path}`);
|
||||
});
|
||||
const templates = await client.listSubmissionTemplates({ userId: "ding-u1" }, 20);
|
||||
assert.equal(templates.length, 8);
|
||||
assert.equal(templates.length, 7);
|
||||
assert.equal(templates.some((item) => item.eventNumber === "T5"), false);
|
||||
assert.equal(templates.find((item) => item.eventNumber === "T8")?.kind, "expense_apply");
|
||||
for (const template of templates) await client.submitApproval({ userId: "ding-u1" }, template, {});
|
||||
assert.deepEqual(createPaths.sort(), [
|
||||
@@ -799,7 +800,6 @@ test("Xft submission routes every supported template kind to its documented crea
|
||||
"/itrip/xft-api/v1/bills/apply/expense/create",
|
||||
"/itrip/xft-api/v1/bills/apply/expense/create",
|
||||
"/itrip/xft-api/v1/bills/apply/travel/create",
|
||||
"/itrip/xft-api/v1/bills/apply/use-car/create",
|
||||
"/itrip/xft-api/v1/reimburse/bill/create",
|
||||
"/itrip/xft-api/v1/reimburse/bill/travel/create",
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user