chore(project): bump test dependency versions
* remove redundant karma-chai
This commit is contained in:
parent
90ddaeef5e
commit
9416eae126
File diff suppressed because it is too large
Load Diff
11
package.json
11
package.json
|
@ -37,7 +37,7 @@
|
|||
"browserify": "^13.0.0",
|
||||
"browserify-derequire": "^0.9.1",
|
||||
"bundle-collapser": "^1.1.1",
|
||||
"chai": "^3.5.0",
|
||||
"chai": "^4.1.2",
|
||||
"chai-match": "^1.1.1",
|
||||
"eslint": "^3.19.0",
|
||||
"eslint-plugin-mocha": "^4.9.0",
|
||||
|
@ -50,7 +50,6 @@
|
|||
"jsondiffpatch": "^0.1.26",
|
||||
"karma": "^1.7.0",
|
||||
"karma-browserify": "^5.1.1",
|
||||
"karma-chai": "^0.1.0",
|
||||
"karma-chrome-launcher": "^2.1.1",
|
||||
"karma-env-preprocessor": "^0.1.1",
|
||||
"karma-firefox-launcher": "^1.0.1",
|
||||
|
@ -58,15 +57,15 @@
|
|||
"karma-mocha": "^1.3.0",
|
||||
"karma-phantomjs-launcher": "^1.0.4",
|
||||
"karma-safari-launcher": "^1.0.0",
|
||||
"karma-sinon-chai": "^1.3.1",
|
||||
"karma-sinon-chai": "^1.3.2",
|
||||
"karma-spec-reporter": "0.0.31",
|
||||
"load-grunt-tasks": "^0.3.0",
|
||||
"mocha": "^3.4.1",
|
||||
"mocha": "^4.0.1",
|
||||
"mocha-test-container-support": "0.2.0",
|
||||
"phantomjs-prebuilt": "^2.1.12",
|
||||
"puppeteer": "^0.12.0",
|
||||
"sinon": "^2.2.0",
|
||||
"sinon-chai": "^2.10.0",
|
||||
"sinon": "^4.0.1",
|
||||
"sinon-chai": "^2.14.0",
|
||||
"source-map-concat": "^1.0.0",
|
||||
"stringify": "^3.1.0",
|
||||
"time-grunt": "^0.3.2",
|
||||
|
|
|
@ -36,7 +36,6 @@ module.exports = function(karma) {
|
|||
frameworks: [
|
||||
'browserify',
|
||||
'mocha',
|
||||
'chai',
|
||||
'sinon-chai'
|
||||
],
|
||||
|
||||
|
|
|
@ -118,7 +118,7 @@ describe('features - keyboard', function() {
|
|||
// then
|
||||
var selectedElements = selection.get();
|
||||
|
||||
expect(selectedElements).to.have.length.of(allElements.length - 1);
|
||||
expect(selectedElements).to.have.length(allElements.length - 1);
|
||||
expect(selectedElements).not.to.contain(rootElement);
|
||||
}));
|
||||
|
||||
|
|
|
@ -2,12 +2,14 @@
|
|||
|
||||
/* global bootstrapViewer, inject */
|
||||
|
||||
var pick = require('lodash/object/pick');
|
||||
|
||||
var labelEditingModule = require('../../../../lib/features/label-editing'),
|
||||
coreModule = require('../../../../lib/core'),
|
||||
draggingModule = require('diagram-js/lib/features/dragging'),
|
||||
modelingModule = require('diagram-js/lib/features/modeling');
|
||||
|
||||
|
||||
describe('features - label-editing preview', function() {
|
||||
|
||||
var diagramXML = require('../../../fixtures/bpmn/features/label-editing/labels.bpmn');
|
||||
|
@ -67,7 +69,7 @@ describe('features - label-editing preview', function() {
|
|||
});
|
||||
|
||||
// then
|
||||
var bounds = labelEditingPreview.path.getBBox();
|
||||
var bounds = bbox(labelEditingPreview.path);
|
||||
|
||||
expect(bounds).to.eql({ x: 0, y: 0, width: 10, height: 300 });
|
||||
}));
|
||||
|
@ -88,7 +90,7 @@ describe('features - label-editing preview', function() {
|
|||
});
|
||||
|
||||
// then
|
||||
var bounds = labelEditingPreview.path.getBBox();
|
||||
var bounds = bbox(labelEditingPreview.path);
|
||||
|
||||
expect(bounds).to.eql({ x: 0, y: 0, width: 10, height: 0 });
|
||||
}));
|
||||
|
@ -130,4 +132,11 @@ describe('features - label-editing preview', function() {
|
|||
}));
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
function bbox(el) {
|
||||
return pick(el.getBBox(), [ 'x', 'y', 'width', 'height' ]);
|
||||
}
|
Loading…
Reference in New Issue