WMS_MAIN/test_reports/tmp/077-mirror.stdout.log
liufumingren e73a311076 ok
2026-04-11 17:09:06 +08:00

55 lines
2.2 KiB
Plaintext

[egg-ts-helper] create typings\app\extend\application.d.ts (2ms)
[egg-ts-helper] create typings\app\controller\index.d.ts (2ms)
[egg-ts-helper] create typings\app\model\index.d.ts (3ms)
[egg-ts-helper] create typings\config\index.d.ts (12ms)
[egg-ts-helper] create typings\config\plugin.d.ts (1ms)
[egg-ts-helper] create typings\app\service\index.d.ts (3ms)
[egg-ts-helper] create typings\app\index.d.ts (0ms)
test/app/service/systems/notice.test.js
1) should normalize payload and send only matching webhooks
✔ should enrich payload with store info from cache before querying database
✔ should load store info from database and cache it when cache is empty
✔ should send to both warehouse and owner webhooks when events match or are set to all
✔ should only send up to the configured webhook limit
✔ should require url for image or file message
✔ should require warehouseId but allow empty ownerId
✔ should retry failed webhooks three times and persist final failures
✔ should reject sending unregistered event
✔ should reject dotted or numeric-leading event names
✔ should send wecom webhook as enterprise wechat direct message
✔ should expose available webhook events and reject unsupported ones
11 passing (12ms)
1 failing
1) test/app/service/systems/notice.test.js
should normalize payload and send only matching webhooks:
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
+ 100000
- 1000000
+ expected - actual
-100000
+1000000
at Object.findAll (test\app\service\systems\notice.test.js:34:20)
at D:\wms\worktrees\deploy-20260409155126\app\service\systems\notice\index.js:796:43
at Array.map (<anonymous>)
at NoticeService.findMatchedWebhooks (app\service\systems\notice\index.js:786:62)
at NoticeService.send (app\service\systems\notice\index.js:826:33)
at async Context.<anonymous> (test\app\service\systems\notice.test.js:55:20)
[mochawesome] Report JSON saved to D:\wms\worktrees\deploy-20260409155126\node_modules\.mochawesome-reports\mochawesome.json
[mochawesome] Report HTML saved to D:\wms\worktrees\deploy-20260409155126\node_modules\.mochawesome-reports\mochawesome.html