Skip to content

Commit

Permalink
fix: Fix bad return value from mock-directive
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon Domingue authored and ike18t committed Mar 16, 2018
1 parent ab45f6f commit 4659a32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mock-directive/mock-directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function MockDirective<TDirective>(directive: Type<TDirective>): Type<TDi
if (!directive.hasOwnProperty('decorators')) {
throw new Error(`Cannot find the annotations/decorators for directive ${directive.name}`);
}
return (directive as any).decorators[0].args[0];
annotation = (directive as any).decorators[0].args[0];
}

const options: Directive = {
Expand Down

0 comments on commit 4659a32

Please sign in to comment.