mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed the issues for all the javascript files reported by the liner.
This commit is contained in:
@@ -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));
|
||||
|
||||
@@ -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.',
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user