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