diff --git a/src/policies/noop-policy.test.ts b/src/policies/noop-policy.test.ts new file mode 100644 index 0000000..577ee51 --- /dev/null +++ b/src/policies/noop-policy.test.ts @@ -0,0 +1,9 @@ +import { assert } from '../deps.ts'; +import { buildInputMessage } from '../test.ts'; + +import noopPolicy from './noop-policy.ts'; + +Deno.test('allows events', async () => { + const msg = buildInputMessage(); + assert((await noopPolicy(msg)).action === 'accept'); +});