Skip to content

Commit

Permalink
test: add case for object mapper with default result key
Browse files Browse the repository at this point in the history
  • Loading branch information
bartlangelaan committed May 6, 2018
1 parent bbade91 commit 864f20a
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/hn-react/src/utils/tests/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,14 @@ export const mapper = {
unique_type_3__unique_bundle_3: mapperComponentWithHOC2,
};

/* tslint:disable */
export const asyncMapper = {
unique_type_1__unique_bundle_1: jest.fn(() =>
Promise.resolve(MapperComponent),
),
unique_type_2__unique_bundle_2: jest.fn(() =>
Promise.resolve(MapperComponentWithHOC),
),
unique_type_3__unique_bundle_3: jest.fn(() =>
Promise.resolve(MapperComponentWithHOC2),
Promise.resolve({ default: MapperComponentWithHOC }),
),
};
/* tslint:enable */

export const uuid = 'unique-uuid-1';
export const uuid2 = 'unique-uuid-3';
Expand Down

0 comments on commit 864f20a

Please sign in to comment.