From e7efc507f8d9ad23245ac3258b53108784392a82 Mon Sep 17 00:00:00 2001 From: "v.potekhin" Date: Tue, 5 Dec 2023 16:13:05 +0300 Subject: [PATCH] chore: add test --- projects/ng-polymorpheus/src/tests/outlet.spec.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/projects/ng-polymorpheus/src/tests/outlet.spec.ts b/projects/ng-polymorpheus/src/tests/outlet.spec.ts index 47d35f39..9bded5cd 100644 --- a/projects/ng-polymorpheus/src/tests/outlet.spec.ts +++ b/projects/ng-polymorpheus/src/tests/outlet.spec.ts @@ -136,6 +136,13 @@ describe('PolymorpheusOutlet', () => { ); }); + it('Directive static type check exists', () => { + // @ts-ignore + expect(PolymorpheusTemplate.ngTemplateContextGuard({polymorpheus: {}})).toBe( + true, + ); + }); + describe('Primitive', () => { it('Works with strings', () => { testComponent.content = 'string';