Skip to content

Commit

Permalink
fix: update naming for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
mattheworris committed Sep 18, 2024
1 parent 2c01007 commit a534aad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/account-api/test/delegations.controller.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ let privateConnectionsSchema: Schema | undefined;
let httpServer: any;
let invalidMsaId: string;
let msaNonProviderId: string;
let invalidKeypair: KeyringPair;
let nonMsaKeypair: KeyringPair;

describe('Delegation Controller', () => {
let app: INestApplication;
Expand All @@ -43,7 +43,7 @@ describe('Delegation Controller', () => {

invalidMsaId = (BigInt(maxMsaId) + 100n).toString();
msaNonProviderId = users[0].msaId.toString();
invalidKeypair = new Keyring({ type: 'sr25519' }).createFromUri('//Alice//invalidUser');
nonMsaKeypair = new Keyring({ type: 'sr25519' }).createFromUri('//Alice//invalidUser');

module = await Test.createTestingModule({
imports: [ApiModule],
Expand Down Expand Up @@ -136,7 +136,7 @@ describe('Delegation Controller', () => {

it('(GET) /v1/delegation/revokeDelegation/:accountId/:providerId with valid accountId: no msa', async () => {
const providerId = provider.msaId?.toString();
const getPath: string = `/v1/delegation/revokeDelegation/${invalidKeypair.address}/${providerId}`;
const getPath: string = `/v1/delegation/revokeDelegation/${nonMsaKeypair.address}/${providerId}`;
await request(httpServer).get(getPath).expect(HttpStatus.NOT_FOUND).expect({
statusCode: HttpStatus.NOT_FOUND,
message: 'MSA ID for account not found',
Expand Down

0 comments on commit a534aad

Please sign in to comment.