Skip to content

Commit

Permalink
fixed linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Ptroger committed Aug 23, 2024
1 parent 76d5495 commit 5e34c67
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { ConfigService } from '@narval/config-module'
import { AuthorizationRequest, Feed, HistoricalTransfer, JwtString } from '@narval/policy-engine-shared'
import { Alg, Payload, SigningAlg, decodeJwt, hash, hexToBase64Url, privateKeyToJwk, signJwt } from '@narval/signature'
import { Injectable } from '@nestjs/common'
import { ApplicationException } from 'apps/armory/src/shared/exception/application.exception'
import { ApplicationException } from '../../../shared/exception/application.exception'
import { omit } from 'lodash/fp'
import { privateKeyToAccount } from 'viem/accounts'
import { Config } from '../../../armory.config'
Expand Down
32 changes: 6 additions & 26 deletions packages/armory-sdk/src/lib/__test__/e2e/scenarios.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ const getAuthHost = () => 'http://localhost:3005'
const getAuthAdminApiKey = () => 'armory-admin-api-key'
const getVaultHost = () => 'http://localhost:3011'
const getVaultAdminApiKey = () => 'vault-admin-api-key'
const bobPrivateKey = FIXTURE.UNSAFE_PRIVATE_KEY.Bob
const alicePrivateKey = FIXTURE.UNSAFE_PRIVATE_KEY.Alice
const carolPrivateKey = FIXTURE.UNSAFE_PRIVATE_KEY.Carol

let authClientId: string
let vaultClientId: string

describe('End to end scenarios', () => {
describe('rate limiting', () => {
const bobPrivateKey = FIXTURE.UNSAFE_PRIVATE_KEY.Bob
const alicePrivateKey = FIXTURE.UNSAFE_PRIVATE_KEY.Alice

let authClientId: string
let vaultClientId: string

const request: Request = {
action: Action.SIGN_TRANSACTION,
nonce: 'test-nonce',
Expand Down Expand Up @@ -238,12 +238,6 @@ describe('End to end scenarios', () => {
})

describe('spending limits', () => {
const bobPrivateKey = FIXTURE.UNSAFE_PRIVATE_KEY.Bob
const alicePrivateKey = FIXTURE.UNSAFE_PRIVATE_KEY.Alice

let authClientId: string
let vaultClientId: string

const request: Request = {
action: Action.SIGN_TRANSACTION,
nonce: 'test-nonce',
Expand Down Expand Up @@ -467,13 +461,6 @@ describe('End to end scenarios', () => {
})

describe('group rate limits', () => {
const bobPrivateKey = FIXTURE.UNSAFE_PRIVATE_KEY.Bob
const alicePrivateKey = FIXTURE.UNSAFE_PRIVATE_KEY.Alice
const carolPrivateKey = FIXTURE.UNSAFE_PRIVATE_KEY.Carol

let authClientId: string
let vaultClientId: string

const request: Request = {
action: Action.SIGN_TRANSACTION,
nonce: 'test-nonce',
Expand Down Expand Up @@ -728,13 +715,6 @@ describe('End to end scenarios', () => {
})

describe('group spending limits requires an approval', () => {
const bobPrivateKey = FIXTURE.UNSAFE_PRIVATE_KEY.Bob
const alicePrivateKey = FIXTURE.UNSAFE_PRIVATE_KEY.Alice
const carolPrivateKey = FIXTURE.UNSAFE_PRIVATE_KEY.Carol

let authClientId: string
let vaultClientId: string

const request: Request = {
action: Action.SIGN_TRANSACTION,
nonce: 'test-nonce',
Expand Down

0 comments on commit 5e34c67

Please sign in to comment.