Fixed the issues for all the javascript files reported by the liner.

This commit is contained in:
Ashesh Vashi
2018-04-30 17:51:57 +05:30
parent 31e73f4096
commit c94439bf8e
13 changed files with 131 additions and 132 deletions

View File

@@ -7,8 +7,8 @@
//
//////////////////////////////////////////////////////////////
import $ from 'jquery'
import modifyAnimation from 'sources/modify_animation'
import $ from 'jquery';
import modifyAnimation from 'sources/modify_animation';
describe('modifyAnimation', function () {
@@ -16,12 +16,12 @@ describe('modifyAnimation', function () {
let dummyElement;
beforeEach(() => {
pgBrowser = jasmine.createSpyObj('pgBrowser', ['get_preference', 'tree'])
pgBrowser = jasmine.createSpyObj('pgBrowser', ['get_preference', 'tree']);
pgBrowser.tree = jasmine.createSpyObj('tree', ['options']);
pgBrowser.tree.options.and.returnValue({
show: {},
hide: {},
view: {},
show: {},
hide: {},
view: {},
});
dummyElement = document.createElement('link');
spyOn($.fn, 'find').and.returnValue($(dummyElement));

View File

@@ -62,7 +62,7 @@ describe('Server#ModelValidation', () => {
expect(model.errorModel.set).toHaveBeenCalledWith({
host: 'Either Host name, Address or Service must be specified.',
hostaddr: 'Either Host name, Address or Service must be specified.',
db: 'Maintenance database must be specified.'
db: 'Maintenance database must be specified.',
});
});
});
@@ -81,7 +81,7 @@ describe('Server#ModelValidation', () => {
hostaddr: 'Either Host name, Address or Service must be specified.',
db: 'Maintenance database must be specified.',
username: 'Username must be specified.',
port: 'Port must be specified.'
port: 'Port must be specified.',
});
});
});
@@ -96,7 +96,7 @@ describe('Server#ModelValidation', () => {
hostaddr: 'Host address must be valid IPv4 or IPv6 address.',
db: 'Maintenance database must be specified.',
username: 'Username must be specified.',
port: 'Port must be specified.'
port: 'Port must be specified.',
});
});
});
@@ -109,7 +109,7 @@ describe('Server#ModelValidation', () => {
expect(model.errorModel.set).toHaveBeenCalledWith({
name: 'Name must be specified.',
username: 'Username must be specified.',
port: 'Port must be specified.'
port: 'Port must be specified.',
});
});
});