No description
A tiny test runner (tests/lua/test_runner.lua) plus an in-memory amity mock (tests/lua/mock_amity.lua) let us exercise plugin lib modules without the full host. First batch of 30 tests covers: - Files path normalisation: root-escape rejection, null-byte rejection, "." and ".." resolution, UTF-8 filenames - Upload filename validation: separator, control char, length, empty - follow_index: add/remove/idempotence, rebuild-from-forward, migrate_once flag - contacts/lib/jwks TOFU: first pin, unchanged re-fetch, rejection on material change, additive new kids, clear_pin reset, HTTP failure Run with: lua5.4 tests/lua/run.lua Also fixes the flagged test-state leak: sharedInviteCode is now scoped inside test.describe.serial() instead of at module top level, so concurrent or out-of-order runs no longer share the variable. |
||
|---|---|---|
| activitypub | ||
| contacts | ||
| e2eechat | ||
| files | ||
| ocm | ||
| tests | ||
| .gitignore | ||
| amity-plugin-developer.skill | ||
| README.md | ||