inventory
This commit is contained in:
@@ -23,6 +23,7 @@ describe('App', () => {
|
||||
{ path: 'location', children: [] },
|
||||
{ path: 'world', children: [] },
|
||||
{ path: 'hunt', children: [] },
|
||||
{ path: 'inventory', children: [] },
|
||||
]),
|
||||
{
|
||||
provide: WorldStore,
|
||||
@@ -112,6 +113,16 @@ describe('App', () => {
|
||||
expect(fixture.nativeElement.querySelector('app-context-panel')).toBeNull();
|
||||
});
|
||||
|
||||
it('drops the shell context rail on /inventory, which needs all three of its own columns', async () => {
|
||||
const fixture = TestBed.createComponent(AppShellComponent);
|
||||
const router = TestBed.inject(Router);
|
||||
await router.navigateByUrl('/inventory');
|
||||
fixture.detectChanges();
|
||||
await fixture.whenStable();
|
||||
|
||||
expect(fixture.nativeElement.querySelector('app-context-panel')).toBeNull();
|
||||
});
|
||||
|
||||
it('keeps the shell context rail on the map', async () => {
|
||||
const fixture = TestBed.createComponent(AppShellComponent);
|
||||
const router = TestBed.inject(Router);
|
||||
|
||||
Reference in New Issue
Block a user