Skip to content

Commit

Permalink
test: fix and enable skipped test
Browse files Browse the repository at this point in the history
  • Loading branch information
oltrep authored and satya164 committed Sep 10, 2020
1 parent b9ecbd2 commit 09a10fa
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/core/src/__tests__/getNavigation.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import getNavigation from '../getNavigation';
import * as NavigationActions from '../NavigationActions';

it('getNavigation provides default action helpers', () => {
const router = {
Expand All @@ -22,12 +23,11 @@ it('getNavigation provides default action helpers', () => {
topNav.navigate('GreatRoute');

expect(dispatch.mock.calls.length).toBe(1);
expect(dispatch.mock.calls[0][0].type).toBe('Navigation/NAVIGATE');
expect(dispatch.mock.calls[0][0].type).toBe(NavigationActions.NAVIGATE);
expect(dispatch.mock.calls[0][0].routeName).toBe('GreatRoute');
});

// eslint-disable-next-line jest/no-disabled-tests
it.skip('getNavigation provides router action helpers', () => {
it('getNavigation provides router action helpers', () => {
const router = {
getActionCreators: () => ({
foo: (bar) => ({ type: 'FooBarAction', bar }),
Expand All @@ -39,7 +39,8 @@ it.skip('getNavigation provides router action helpers', () => {

const dispatch = jest.fn();

const topNav = getNavigation(
let topNav;
topNav = getNavigation(
router,
{},
dispatch,
Expand Down

0 comments on commit 09a10fa

Please sign in to comment.