Skip to content

Commit

Permalink
fix: fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cmoinier committed Jul 2, 2024
1 parent 498ed25 commit 51db788
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -451,9 +451,9 @@ describe('RecordMetadataComponent', () => {
fixture.debugElement.query(By.directive(MockDataViewShareComponent))
).toBeTruthy()
})
describe('when selectedTabIndex$ is 2 (chart tab)', () => {
describe('when selectedView$ is chart', () => {
beforeEach(() => {
component.selectedTabIndex$.next(2)
component.selectedView$.next('chart')
fixture.detectChanges()
})
it('renders the permalink component', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ describe('DataViewPermalinkComponent', () => {
facade = TestBed.inject(MdViewFacade)
fixture = TestBed.createComponent(DataViewPermalinkComponent)
component = fixture.componentInstance
component.tabIndex$.next(2)
component.viewType$.next('chart')
fixture.detectChanges()
})

Expand Down Expand Up @@ -126,7 +126,7 @@ describe('DataViewPermalinkComponent', () => {
})
describe('Map view', () => {
beforeEach(() => {
component.tabIndex$.next(0)
component.viewType$.next('map')
})
describe('init permalinkUrl$', () => {
it('should generate URL based on configs', async () => {
Expand All @@ -143,7 +143,7 @@ describe('DataViewPermalinkComponent', () => {
})
describe('Table view', () => {
beforeEach(() => {
component.tabIndex$.next(1)
component.viewType$.next('table')
})
describe('init permalinkUrl$', () => {
it('should generate URL based on configs', async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ describe('DataViewWebComponentComponent', () => {
facade = TestBed.inject(MdViewFacade)
fixture = TestBed.createComponent(DataViewWebComponentComponent)
component = fixture.componentInstance
component.tabIndex$.next(2)
component.viewType$.next('chart')
fixture.detectChanges()
})

Expand Down Expand Up @@ -128,7 +128,7 @@ describe('DataViewWebComponentComponent', () => {
})
describe('Map view', () => {
beforeEach(() => {
component.tabIndex$.next(0)
component.viewType$.next('map')
})
describe('init webComponentHtml$', () => {
it('should generate HTML based on configs', async () => {
Expand All @@ -151,7 +151,7 @@ describe('DataViewWebComponentComponent', () => {
})
describe('Table view', () => {
beforeEach(() => {
component.tabIndex$.next(1)
component.viewType$.next('table')
})
describe('init webComponentHtml$', () => {
it('should generate HTML based on configs', async () => {
Expand Down

0 comments on commit 51db788

Please sign in to comment.