Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
brittcyr committed Aug 28, 2024
1 parent d31a85c commit 3a7cc46
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions client/ts/tests/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,14 @@ async function testUtils(): Promise<void> {
}

function testToMantissaAndExponent(): void {
assert(toMantissaAndExponent(3).priceExponent == -9);
assert(toMantissaAndExponent(3).priceMantissa == 3_000_000_000);
assert(
toMantissaAndExponent(3).priceExponent == -9,
`Unexpected exponent ${toMantissaAndExponent(3).priceExponent}`,
);
assert(
toMantissaAndExponent(3).priceMantissa == 3_000_000_000,
`Unexpected exponent ${toMantissaAndExponent(3).priceMantissa}`,
);
}

describe('Utils test', () => {
Expand Down

0 comments on commit 3a7cc46

Please sign in to comment.