Skip to content

Commit

Permalink
fix(core): remove properties added by istanbul for not failing in tes…
Browse files Browse the repository at this point in the history
…t coverage
  • Loading branch information
nartc committed Jan 5, 2021
1 parent 7d9aa00 commit 1dcdcdb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/core/src/lib/utils/get-member-path.util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ import type { Selector } from '@automapper/types';

// TODO: support odd properties like: 'odd-property', 'odd.property'?
export function getMemberPath(fn: Selector): string {
const fnString = fn.toString();
const fnString = fn
.toString()
// .replace(/\/\* istanbul ignore next \*\//g, '')
.replace(/cov_.+\n/g, '');

// ES6 prop selector:
// "x => x.prop"
Expand Down

0 comments on commit 1dcdcdb

Please sign in to comment.