mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-22 08:46:39 -06:00
Fixed jasmine test cases of ERD Tool.
This commit is contained in:
parent
c0ef0a893d
commit
02f9b72d3e
@ -16,6 +16,6 @@ describe('ERD OneToManyPortModel', ()=>{
|
|||||||
|
|
||||||
it('createLinkModel', ()=>{
|
it('createLinkModel', ()=>{
|
||||||
let portObj = new OneToManyPortModel({options: {}});
|
let portObj = new OneToManyPortModel({options: {}});
|
||||||
expect(portObj.createLinkModel()).toBeInstanceOf(OneToManyLinkModel);
|
expect(portObj.createLinkModel() instanceof OneToManyLinkModel).toBeTruthy();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -271,9 +271,9 @@ describe('ERD TableNodeWidget', ()=>{
|
|||||||
|
|
||||||
it('icons', ()=>{
|
it('icons', ()=>{
|
||||||
let cols = nodeWidget.find('.table-node .table-cols .col-row-data');
|
let cols = nodeWidget.find('.table-node .table-cols .col-row-data');
|
||||||
expect(cols.at(0).find('.wcTabIcon').hasClass('icon-primary_key')).toBeTrue();
|
expect(cols.at(0).find('.wcTabIcon').hasClass('icon-primary_key')).toBeTruthy();
|
||||||
expect(cols.at(1).find('.wcTabIcon').hasClass('icon-column')).toBeTrue();
|
expect(cols.at(1).find('.wcTabIcon').hasClass('icon-column')).toBeTruthy();
|
||||||
expect(cols.at(2).find('.wcTabIcon').hasClass('icon-column')).toBeTrue();
|
expect(cols.at(2).find('.wcTabIcon').hasClass('icon-column')).toBeTruthy();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('column names', ()=>{
|
it('column names', ()=>{
|
||||||
|
Loading…
Reference in New Issue
Block a user