Fix failing tests based on new toString
This commit is contained in:
parent
0d9e8c64c3
commit
26433c5289
|
@ -58,7 +58,7 @@ describe("Distribution", () => {
|
|||
});
|
||||
test("toPointSet", () => {
|
||||
expect(
|
||||
resultMap(dist.toPointSet(), (r: Distribution) => r.toString()).value
|
||||
resultMap(dist.toPointSet(), (r: Distribution) => r.toString())
|
||||
).toEqual(Ok("Point Set Distribution"));
|
||||
});
|
||||
test("toSparkline", () => {
|
||||
|
|
|
@ -210,7 +210,7 @@ export class Distribution {
|
|||
toString(): string {
|
||||
let result = Constructors_toString({ env: this.env }, this.t);
|
||||
if(result.tag === "Ok"){
|
||||
result.value
|
||||
return result.value
|
||||
}
|
||||
else {
|
||||
return distributionErrorToString(result.value)
|
||||
|
|
Loading…
Reference in New Issue
Block a user