Add test for noopPolicy
This commit is contained in:
parent
9ca50cbe82
commit
b641b03726
9
src/policies/noop-policy.test.ts
Normal file
9
src/policies/noop-policy.test.ts
Normal 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');
|
||||
});
|
Loading…
Reference in New Issue
Block a user