Skip to content

Commit

Permalink
fix: 修复单测报错
Browse files Browse the repository at this point in the history
  • Loading branch information
zengyue committed Feb 24, 2021
1 parent e73224f commit 18af273
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"test-live": "npm run test-watch packages",
"test-watch": "DEBUG_MODE=1 jest --watch",
"coverage": "jest --coverage",
"publish": "npm run build && npm run lerna",
"publish": "npm run test && npm run lerna",
"lerna": "lerna publish"
},
"dependencies": {},
Expand Down
2 changes: 1 addition & 1 deletion packages/components/test/util.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const createContext = () => {
const canvasEl = document.createElement('canvas');
canvasEl.style.width = '100%';
canvasEl.style.width = '359px';
canvasEl.style.height = '400px';
document.body.appendChild(canvasEl);
const context = canvasEl.getContext('2d');
Expand Down
2 changes: 1 addition & 1 deletion packages/fund-components/test/util.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const createContext = () => {
const canvasEl = document.createElement('canvas');
canvasEl.style.width = '100%';
canvasEl.style.width = '359px';
canvasEl.style.height = '400px';
document.body.appendChild(canvasEl);
const context = canvasEl.getContext('2d');
Expand Down
2 changes: 1 addition & 1 deletion packages/jsx/test/render.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { render, jsx } from '../src';
const { G } = F2;

const canvasEl = document.createElement('canvas');
canvasEl.style.width = '100%';
canvasEl.style.width = '359px';
canvasEl.style.height = '400px';
document.body.appendChild(canvasEl);
const context = canvasEl.getContext('2d');
Expand Down

0 comments on commit 18af273

Please sign in to comment.