From b641b037267a7291430a930fdd7709f06cc61520 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sun, 26 Mar 2023 16:03:16 -0500 Subject: [PATCH] Add test for noopPolicy --- src/policies/noop-policy.test.ts | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/policies/noop-policy.test.ts 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'); +});