Fixing lint errors

This commit is contained in:
Jeff Avallone
2015-11-01 10:28:37 -05:00
parent e35be731cc
commit 966ab5f2d6
14 changed files with 42 additions and 41 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ describe('parser/javascript/match.js', function() {
jasmine.objectContaining({
content: jasmine.objectContaining({ literal: 'example' })
})
],
]
},
'example$': {
anchorStart: false,
+25 -23
View File
@@ -30,7 +30,9 @@ describe('parser/javascript/node.js', function() {
this.node.module = {
definedProperties: {
example: {
get: function() { return 'value'; }
get: function() {
return 'value';
}
}
}
};
@@ -77,28 +79,28 @@ describe('parser/javascript/node.js', function() {
describe('#getBBox', function() {
it('returns the normalized bbox of the container merged with the anchor', function() {
this.node.proxy = {
anchor: {
anchor: 'example anchor'
}
};
this.node.container = jasmine.createSpyObj('container', ['addClass', 'getBBox']);
this.node.container.getBBox.and.returnValue({
bbox: 'example bbox',
x: 'left',
x2: 'right',
cy: 'center'
});
expect(this.node.getBBox()).toEqual({
bbox: 'example bbox',
anchor: 'example anchor',
x: 'left',
x2: 'right',
cy: 'center',
ax: 'left',
ax2: 'right',
ay: 'center'
});
this.node.proxy = {
anchor: {
anchor: 'example anchor'
}
};
this.node.container = jasmine.createSpyObj('container', ['addClass', 'getBBox']);
this.node.container.getBBox.and.returnValue({
bbox: 'example bbox',
x: 'left',
x2: 'right',
cy: 'center'
});
expect(this.node.getBBox()).toEqual({
bbox: 'example bbox',
anchor: 'example anchor',
x: 'left',
x2: 'right',
cy: 'center',
ax: 'left',
ax2: 'right',
ay: 'center'
});
});
});
+1 -1
View File
@@ -123,7 +123,7 @@ describe('parser/javascript.js', function() {
it('sets the dimensions of the image', function(done) {
this.parser.render()
.then(() => {
var svg = this.container.querySelector('svg');
let svg = this.container.querySelector('svg');
expect(svg.getAttribute('width')).toEqual('62');
expect(svg.getAttribute('height')).toEqual('44');
+1 -1
View File
@@ -17,7 +17,7 @@ describe('regexper.js', function() {
'</form>',
'<div id="error"></div>',
'<ul id="warnings"></ul>',
'<div id="regexp-render"></div>',
'<div id="regexp-render"></div>'
].join('');
this.regexper = new Regexper(this.root);