Skip to content

Commit

Permalink
chore(transformer): Apply non-nullable check for getDeclarationKeyMap…
Browse files Browse the repository at this point in the history
… use
  • Loading branch information
martinjlowm committed May 19, 2020
1 parent 8f7104c commit 6eefd02
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/transformer/descriptor/method/method.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ export function GetMethodDescriptor(propertyName: ts.PropertyName, methodSignatu
variables.push(
TypescriptCreator.createVariableDeclaration(
variableIdentifier,
ts.createStringLiteral(MockDefiner.instance.getDeclarationKeyMap(declaration)),
// FIXME: Remove the non nullable operator when/if https://github.com/Typescript-TDD/ts-auto-mock/pull/314 is merged
ts.createStringLiteral(MockDefiner.instance.getDeclarationKeyMap(declaration)!),
),
);
}
Expand Down

0 comments on commit 6eefd02

Please sign in to comment.