Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
samuel committed Apr 3, 2024
1 parent 5e9b043 commit 313f2f5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/policy-engine/src/engine/__test__/e2e/engine.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ConfigModule, ConfigService } from '@narval/config-module'
import { EncryptionModuleOptionProvider } from '@narval/encryption-module'
import { FIXTURE } from '@narval/policy-engine-shared'
import { PrivateKey, PublicKey, secp256k1PrivateKeyToJwk } from '@narval/signature'
import { Alg, PrivateKey, PublicKey, privateKeyToJwk, secp256k1PrivateKeyToJwk } from '@narval/signature'
import { HttpStatus, INestApplication } from '@nestjs/common'
import { Test, TestingModule } from '@nestjs/testing'
import { randomBytes } from 'crypto'
Expand Down Expand Up @@ -92,6 +92,10 @@ describe('Engine', () => {
entity: dataStoreConfiguration,
policy: dataStoreConfiguration
},
signer: {
type: 'PRIVATE_KEY',
key: privateKeyToJwk(generatePrivateKey(), Alg.ES256K)
},
createdAt: new Date(),
updatedAt: new Date()
},
Expand Down

0 comments on commit 313f2f5

Please sign in to comment.