Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
fdsa
  • Loading branch information
wphan committed Feb 11, 2025
1 parent f433cae commit d484a96
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tests/testHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ import {
VaultClient,
} from '../ts/sdk';
import { Metaplex } from '@metaplex-foundation/js';
import 'jest-expect-message';

export async function mockOracle(
price: number = 50 * 10e7,
Expand Down Expand Up @@ -1607,6 +1608,6 @@ export async function doWashTrading({
);
}

export function assert(condition: boolean, message?: string) {
export function assert(condition: boolean, message = '') {
expect(condition, message).toBe(true);
}
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"types": [],
"types": ["node", "jest"],
"typeRoots": [
"./node_modules/@types"
],
Expand Down

0 comments on commit d484a96

Please sign in to comment.