diff options
Diffstat (limited to 'tests/utils.ts')
-rw-r--r-- | tests/utils.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/utils.ts b/tests/utils.ts new file mode 100644 index 0000000..14460b9 --- /dev/null +++ b/tests/utils.ts | |||
@@ -0,0 +1,6 @@ | |||
1 | import View from '@ioc:Adonis/Core/View'; | ||
2 | |||
3 | export function fakeCsrfField(): void { | ||
4 | // Create fake csrField function in the view | ||
5 | View.global('csrfField', () => ''); | ||
6 | } | ||