Skip to content

Commit

Permalink
Update src/components/Frame/tests/Frame.test.tsx
Browse files Browse the repository at this point in the history
Co-Authored-By: Andrew Musgrave <andrew.musgrave@shopify.com>
  • Loading branch information
kyledurand and AndrewMusgrave committed Jan 9, 2020
1 parent 7bf3d14 commit e5a0077
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/components/Frame/tests/Frame.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
ContextualSaveBar as PolarisContextualSavebar,
Loading as PolarisLoading,
} from 'components';
import Frame, {FrameProps} from '../Frame';
import Frame from '../Frame';
import {
ContextualSaveBar as FrameContextualSavebar,
Loading as FrameLoading,
Expand Down Expand Up @@ -202,8 +202,6 @@ describe('<Frame />', () => {
.find('div', {id: 'AppFrameNav'})!
.trigger('onKeyDown', {key: 'Escape'});

const {onNavigationDismiss} = frame.props as FrameProps;

expect(spy).not.toHaveBeenCalled();
});

Expand All @@ -221,9 +219,7 @@ describe('<Frame />', () => {
.find('div', {id: 'AppFrameNav'})!
.trigger('onKeyDown', {key: 'Escape'});

const {onNavigationDismiss} = frame.props as FrameProps;

expect(onNavigationDismiss).toHaveBeenCalledTimes(1);
expect(spy).toHaveBeenCalledTimes(1);
});
});

Expand Down

0 comments on commit e5a0077

Please sign in to comment.