Skip to content

Commit

Permalink
Revert "found some others"
Browse files Browse the repository at this point in the history
This reverts commit c15144f.
  • Loading branch information
bh2smith committed May 20, 2020
1 parent c15144f commit a51c0d1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/models/amounts.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
} from "../../src/amounts";
import { Fraction } from "../../src/fraction";
import BN from "bn.js";
import assert from "assert";
import { assert } from "chai";
import "mocha";

const MAX128 = new BN(2).pow(new BN(128)).subn(1);
Expand Down Expand Up @@ -109,7 +109,7 @@ describe("Amounts", () => {
);

// Either the resulting fractions are identicall, or results are "essentiallyEqual"
assert(
assert.isTrue(
essentiallyEqual(unitPrice, expected),
`${unitPrice.toNumber()} != ${expected.toNumber()}`,
);
Expand Down Expand Up @@ -171,7 +171,7 @@ describe("Amounts", () => {
sellTokenDecimals,
buyTokenDecimals,
);
assert(essentiallyEqual(output, expected));
assert.isTrue(essentiallyEqual(output, expected));
});
}
});
Expand Down Expand Up @@ -241,8 +241,8 @@ describe("Amounts", () => {
sellTokenDecimals,
buyTokenDecimals,
);
assert(essentiallyEqual(quote, expectedQuoteAmount));
assert(essentiallyEqual(base, expectedbaseAmount));
assert.isTrue(essentiallyEqual(quote, expectedQuoteAmount));
assert.isTrue(essentiallyEqual(base, expectedbaseAmount));
});
}
});
Expand Down

0 comments on commit a51c0d1

Please sign in to comment.