File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import getPort from 'get-port'
1111import { test } from '@japa/runner'
1212import { Emitter } from '@adonisjs/core/events'
1313import { AppFactory } from '@adonisjs/core/factories/app'
14- import { EncryptionManager } from '@adonisjs/core/encryption'
14+ import { Encryption , EncryptionManager } from '@adonisjs/core/encryption'
1515import { EncryptionFactory } from '@adonisjs/core/factories/encryption'
1616import { AES256GCM } from '@adonisjs/core/encryption/drivers/aes_256_gcm'
1717import { type ApplicationService , type EventsList } from '@adonisjs/core/types'
@@ -45,6 +45,7 @@ test.group('Api client', (group) => {
4545 } )
4646 await app . init ( )
4747 await app . boot ( )
48+ app . container . singleton ( Encryption , ( ) => encryption )
4849 app . container . singleton (
4950 'encryption' ,
5051 ( ) =>
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import getPort from 'get-port'
1111import { test } from '@japa/runner'
1212import { Emitter } from '@adonisjs/core/events'
1313import { AppFactory } from '@adonisjs/core/factories/app'
14- import { EncryptionManager } from '@adonisjs/core/encryption'
14+ import { Encryption , EncryptionManager } from '@adonisjs/core/encryption'
1515import { EncryptionFactory } from '@adonisjs/core/factories/encryption'
1616import { AES256GCM } from '@adonisjs/core/encryption/drivers/aes_256_gcm'
1717import { type ApplicationService , type EventsList } from '@adonisjs/core/types'
@@ -45,6 +45,7 @@ test.group('Browser client', (group) => {
4545 } )
4646 await app . init ( )
4747 await app . boot ( )
48+ app . container . singleton ( Encryption , ( ) => encryption )
4849 app . container . singleton (
4950 'encryption' ,
5051 ( ) =>
You can’t perform that action at this time.
0 commit comments