Fixed jasmine test cases of ERD Tool.

This commit is contained in:
Aditya Toshniwal 2021-01-18 16:39:58 +05:30 committed by Akshay Joshi
parent c0ef0a893d
commit 02f9b72d3e
2 changed files with 4 additions and 4 deletions

View File

@ -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();
}); });
}); });

View File

@ -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', ()=>{