Skip to content

Commit 0b819d2

Browse files
committed
Fix references to chai and mocha
1 parent a4f023d commit 0b819d2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/delegation-toolkit/test/delegation.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { stub } from 'sinon';
22
import { getAddress } from 'viem';
3-
import { describe, it, expect } from 'vitest';
3+
import { describe, it, expect, beforeEach } from 'vitest';
44

55
import { randomAddress } from './utils';
66
import { resolveCaveats } from '../src/caveatBuilder';
@@ -662,7 +662,7 @@ describe('signDelegation', () => {
662662
delegationManager,
663663
chainId,
664664
}),
665-
).to.be.rejectedWith(
665+
).rejects.toThrow(
666666
'No caveats found. If you definitely want to sign a delegation without caveats, set `allowInsecureUnrestrictedDelegation` to `true`.',
667667
);
668668
});

0 commit comments

Comments
 (0)