Add test for noopPolicy

This commit is contained in:
Alex Gleason 2023-03-26 16:03:16 -05:00
parent 9ca50cbe82
commit b641b03726
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7

View File

@ -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');
});