Skip to content

Commit 44a6790

Browse files
committed
await postrender in test
1 parent 5fc092e commit 44a6790

2 files changed

Lines changed: 29 additions & 28 deletions

File tree

test/output/tipAnchors.svg

Lines changed: 27 additions & 27 deletions
Loading

test/plots/tip.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {feature, mesh} from "topojson-client";
44
import {test} from "test/plot";
55

66
test(async function tipAnchors() {
7-
return Plot.plot({
7+
const plot = Plot.plot({
88
style: "overflow: visible;",
99
height: 160,
1010
marks: [
@@ -27,6 +27,7 @@ test(async function tipAnchors() {
2727
])
2828
]
2929
});
30+
return Object.assign(plot, {ready: new Promise((resolve) => setTimeout(resolve, 100))}); // postrender
3031
});
3132

3233
test(async function tipAreaBand() {

0 commit comments

Comments
 (0)