fix tests

This commit is contained in:
Anton Lavrenov
2021-05-04 09:33:41 -05:00
parent 7a6613118e
commit cb20f00e4b
3 changed files with 7 additions and 5 deletions

View File

@@ -105,7 +105,7 @@ describe('AutoDraw', function () {
it('redraw for images', function (done) {
// don't test on node, because of specific url access
if (isNode) {
return;
return done();
}
var stage = addStage();
var layer = new Konva.Layer();

View File

@@ -3762,8 +3762,10 @@ describe('Node', function () {
});
it('show warning when we are trying to use non-objects for component setters', function () {
if (!Konva.isUnminified) {
return;
}
var stage = addStage();
var callCount = 0;
var oldWarn = Konva.Util.warn;
Konva.Util.warn = function () {