Skip to content

Commit

Permalink
fix(core): ensure applyTypeConverter to work correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Chau Tran authored and Chau Tran committed Sep 21, 2021
1 parent 33705af commit 0f1b689
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export function applyTypeConverters(
WeakMap<PrimitiveConstructorWithDate, ValueSelector | Converter>
>
): void {
const [, initializedProps] = mapping;
const [, , initializedProps] = mapping;
for (
let i = 0, initializedPropsLen = initializedProps.length;
i < initializedPropsLen;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ describe('Creation', () => {
mapper.createMap(SimpleBar, SimpleBarVm);
expect(spiedErrorHandler).toHaveBeenNthCalledWith(
1,
`Mapping for source ${SimpleBar.toString()} and destination ${SimpleBarVm.toString()} already exists`
`Mapping for source ${SimpleBar.name} and destination ${SimpleBarVm.name} already exists`
);
});

Expand Down

0 comments on commit 0f1b689

Please sign in to comment.