Skip to content

Commit

Permalink
style: address mocha lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
nikku committed Oct 10, 2024
1 parent 12a43d3 commit 999bdd7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions test/spec/core/CanvasSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,7 @@ describe('Canvas', function() {
beforeEach(function() {
container = TestContainer.get(this);
});

beforeEach(createDiagram());


Expand Down Expand Up @@ -1327,6 +1328,7 @@ describe('Canvas', function() {
beforeEach(function() {
container = TestContainer.get(this);
});

beforeEach(createDiagram({ canvas: { width: 500, height: 500 } }));


Expand Down Expand Up @@ -1855,7 +1857,7 @@ describe('Canvas', function() {
}));


it('should remove cached viewbox on shape add', inject(
it('should remove cached viewbox on shape change', inject(
function(canvas, eventBus, graphicsFactory) {
var shape = canvas.addShape({
id: 's0',
Expand Down Expand Up @@ -2068,6 +2070,7 @@ describe('Canvas', function() {
beforeEach(function() {
container = TestContainer.get(this);
});

beforeEach(createDiagram({ canvas: { width: 300, height: 300 } }));


Expand Down Expand Up @@ -2117,7 +2120,7 @@ describe('Canvas', function() {
}));


it('should return abs position (zoomed in)', inject(function(canvas) {
it('should return abs position (zoomed out)', inject(function(canvas) {

// given
var shape = { id: 's0', x: 10, y: 20, width: 300, height: 200 };
Expand All @@ -2140,6 +2143,7 @@ describe('Canvas', function() {
beforeEach(function() {
container = TestContainer.get(this);
});

beforeEach(createDiagram({ canvas: { width: 300, height: 300 } }));

var shape;
Expand Down Expand Up @@ -2185,6 +2189,7 @@ describe('Canvas', function() {
beforeEach(function() {
container = TestContainer.get(this);
});

beforeEach(createDiagram({ canvas: { width: 300, height: 300 } }));


Expand Down

0 comments on commit 999bdd7

Please sign in to comment.