Skip to content

Commit

Permalink
Test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ncovercash committed Oct 9, 2023
1 parent 60a0b03 commit a9a4091
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/index.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { StripesType } from '@folio/stripes/core';
import React from 'react';
import CalendarRouting from '.';
import expectRender from './test/util/expectRender';
Expand All @@ -13,8 +12,7 @@ describe('Main index.tsx entry point', () => {
it('renders appropriately when it should not be showing', () => {
expectRender(
<CalendarRouting
stripes={{} as StripesType}
location={{ pathname: 'foo', search: '', state: undefined, hash: '', key: '' }}
location={{ pathname: 'foo', search: '', hash: '' } as Location}
forceRender={0}
/>
).toContain('How did you get to foo?');
Expand All @@ -23,8 +21,7 @@ describe('Main index.tsx entry point', () => {
it('renders appropriately when it should be showing', () => {
expectRender(
<CalendarRouting
stripes={{} as StripesType}
location={{ pathname: 'foo', search: '', state: undefined, hash: '', key: '' }}
location={{ pathname: 'foo', search: '', hash: '' } as Location}
forceRender={0}
showSettings
/>
Expand Down

0 comments on commit a9a4091

Please sign in to comment.