konva/test/import-test.js

13 lines
263 B
JavaScript
Raw Normal View History

2021-05-05 22:19:24 +08:00
function equal(val1, val2, message) {
if (val1 !== val2) {
throw new Error('Not passed: ' + message);
}
}
2019-02-27 21:06:04 +08:00
2021-05-05 22:19:24 +08:00
// try to import only core
const Konva = require('../cmj').default;
2021-04-30 22:24:27 +08:00
2021-05-09 21:11:42 +08:00
// just do a simple action
const stage = new Konva.Stage();
stage.toDataURL();