mirror of
https://github.com/wekan/wekan.git
synced 2026-11-25 04:49:41 -05:00
- models/fileValidation.js: a stray BOM (U+FEFF) inside the looksLikeDangerousMarkup regex character class broke the server test build with a Babel 'Unexpected token' syntax error, so Mocha ran 0 tests. JS \s already matches U+FEFF, so the explicit BOM was redundant; use plain \s*. - models/import.js: importBoard awaited assertImportEnabled() BEFORE the switch that check()s the "board" argument. Meteor's audit-argument-checks tracks checks on the async context, so awaiting first made the later check(board) not count, throwing 'Did not check() all arguments during call to importBoard' -- which broke the WeKan JSON import (#21) and Excel import (#25) Playwright tests. Check "board" up front (Match.OneOf(Object, Array)) before the await; the per-source switch still does its specific check. - server/publications/activities.js: move the disableActivities gate to AFTER the check() calls so the argument-checks audit is satisfied when the toggle is on (latent: it would have thrown 'did not check all arguments' with activities off).