Skip to content

Commit 0defe0a

Browse files
committed
test: fix breaking tests
1 parent 3303e14 commit 0defe0a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tests/plugins/api_client.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import getPort from 'get-port'
1111
import { test } from '@japa/runner'
1212
import { Emitter } from '@adonisjs/core/events'
1313
import { AppFactory } from '@adonisjs/core/factories/app'
14-
import { EncryptionManager } from '@adonisjs/core/encryption'
14+
import { Encryption, EncryptionManager } from '@adonisjs/core/encryption'
1515
import { EncryptionFactory } from '@adonisjs/core/factories/encryption'
1616
import { AES256GCM } from '@adonisjs/core/encryption/drivers/aes_256_gcm'
1717
import { 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
() =>

tests/plugins/browser_client.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import getPort from 'get-port'
1111
import { test } from '@japa/runner'
1212
import { Emitter } from '@adonisjs/core/events'
1313
import { AppFactory } from '@adonisjs/core/factories/app'
14-
import { EncryptionManager } from '@adonisjs/core/encryption'
14+
import { Encryption, EncryptionManager } from '@adonisjs/core/encryption'
1515
import { EncryptionFactory } from '@adonisjs/core/factories/encryption'
1616
import { AES256GCM } from '@adonisjs/core/encryption/drivers/aes_256_gcm'
1717
import { 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
() =>

0 commit comments

Comments
 (0)