Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
peterpeterparker committed Aug 28, 2024
1 parent 397160b commit d4ad792
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/types/icrc-requests.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -433,25 +433,25 @@ describe('icrc-requests', () => {
});

it('should fail validation when "canisterId" is missing', () => {
const {canisterId, ...rest} = validParams;
const {canisterId: _, ...rest} = validParams;

expect(() => IcrcCallCanisterRequestParamsSchema.parse(rest)).toThrow();
});

it('should fail validation when "sender" is missing', () => {
const {sender, ...rest} = validParams;
const {sender: _, ...rest} = validParams;

expect(() => IcrcCallCanisterRequestParamsSchema.parse(rest)).toThrow();
});

it('should fail validation when "method" is missing', () => {
const {method, ...rest} = validParams;
const {method: _, ...rest} = validParams;

expect(() => IcrcCallCanisterRequestParamsSchema.parse(rest)).toThrow();
});

it('should fail validation when "arg" is missing', () => {
const {arg, ...rest} = validParams;
const {arg: _, ...rest} = validParams;

expect(() => IcrcCallCanisterRequestParamsSchema.parse(rest)).toThrow();
});
Expand Down

0 comments on commit d4ad792

Please sign in to comment.