@7365admin1/core 3.123.0 → 3.124.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/index.d.ts +9 -2
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/test/console-audit.test.mjs +8 -0
package/package.json
CHANGED
|
@@ -361,3 +361,11 @@ test("the row keeps ids, and names are joined at read time", () => {
|
|
|
361
361
|
test("a date filter reads the whole of the day it names", () => {
|
|
362
362
|
assert.match(CONTROLLER, /T23:59:59\.999Z/);
|
|
363
363
|
});
|
|
364
|
+
|
|
365
|
+
test("inventory store-type repair: its row keeps only the type and the store name", async () => {
|
|
366
|
+
const { ConsoleAuditAction, pickAuditFields, CONSOLE_AUDIT_LABELS } = await import("./.build/utils/console-audit.util.mjs");
|
|
367
|
+
const action = ConsoleAuditAction.INVENTORY_STORE_TYPE_REPAIRED;
|
|
368
|
+
assert.equal(action, "inventory.store-type-repaired");
|
|
369
|
+
assert.ok(CONSOLE_AUDIT_LABELS[action]);
|
|
370
|
+
assert.deepEqual(pickAuditFields(action, { ownerType: "service_provider", name: "Main Store", createdBy: "x", email: "a@b.c" }), { ownerType: "service_provider", name: "Main Store" });
|
|
371
|
+
});
|