mirror of
https://github.com/idrawjs/idraw
synced 2026-05-24 10:08:34 +00:00
test: fix unit test error
This commit is contained in:
parent
5b79be6f1e
commit
6b8585ca00
1 changed files with 1 additions and 1 deletions
|
|
@ -26,7 +26,7 @@ describe('@idraw/board: src/lib/context', () => {
|
|||
ctx.fillStyle = '#ffffff';
|
||||
ctx.fillRect(0, 0, opts.contextWidth, opts.contextHeight);
|
||||
data.elements.forEach((ele) => {
|
||||
ctx.fillStyle = ele.desc.color;
|
||||
ctx.fillStyle = ele.detail.color;
|
||||
ctx.fillRect(ele.x, ele.y, ele.w, ele.h);
|
||||
});
|
||||
// @ts-ignore;
|
||||
|
|
|
|||
Loading…
Reference in a new issue