aboutsummaryrefslogtreecommitdiffstats
path: root/tests/utils.ts
diff options
context:
space:
mode:
Diffstat (limited to 'tests/utils.ts')
-rw-r--r--tests/utils.ts6
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 @@
1import View from '@ioc:Adonis/Core/View';
2
3export function fakeCsrfField(): void {
4 // Create fake csrField function in the view
5 View.global('csrfField', () => '');
6}