|
|
@ -1,8 +1,7 @@ |
|
|
import { createHostFactory, SpectatorHost } from '@ngneat/spectator/jest'; |
|
|
|
|
|
import { PaginationComponent, TableComponent } from '../components'; |
|
|
|
|
|
|
|
|
|
|
|
import { Pipe, PipeTransform } from '@angular/core'; |
|
|
import { Pipe, PipeTransform } from '@angular/core'; |
|
|
import { NgbPaginationModule } from '@ng-bootstrap/ng-bootstrap'; |
|
|
import { NgbPaginationModule } from '@ng-bootstrap/ng-bootstrap'; |
|
|
|
|
|
import { createHostFactory, SpectatorHost } from '@ngneat/spectator/jest'; |
|
|
|
|
|
import { PaginationComponent, TableComponent } from '../components'; |
|
|
|
|
|
|
|
|
@Pipe({ |
|
|
@Pipe({ |
|
|
name: 'abpLocalization', |
|
|
name: 'abpLocalization', |
|
|
@ -40,7 +39,7 @@ describe('TableComponent', () => { |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
it('should display the empty message', () => { |
|
|
it('should display the empty message', () => { |
|
|
expect(spectator.query('tr.empty-row>div')).toHaveText( |
|
|
expect(spectator.query('caption.ui-table-empty')).toHaveText( |
|
|
'AbpAccount::NoDataAvailableInDatatable', |
|
|
'AbpAccount::NoDataAvailableInDatatable', |
|
|
); |
|
|
); |
|
|
}); |
|
|
}); |
|
|
|