Skip to content

Commit

Permalink
test: fix dialog.service.spec.ts type error
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardoperra authored Mar 30, 2022
1 parent 8214e74 commit 3f9791c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions projects/ngneat/dialog/src/lib/dialog.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ describe('DialogService', () => {

it('should fill dialog injector', () => {
const fakeTemplate = new FakeTemplateRef();
const dialog = service.open(fakeTemplate) as InternalDialogRef;
const dialog = service.open(fakeTemplate) as unknown as InternalDialogRef;

const fakeTemplateView = fakeTemplate.view;

Expand Down Expand Up @@ -335,7 +335,7 @@ describe('DialogService', () => {

beforeEach(() => {
fakeTemplate = new FakeTemplateRef();
dialog = service.open(fakeTemplate) as InternalDialogRef;
dialog = service.open(fakeTemplate) as unknown as InternalDialogRef;

This comment has been minimized.

Copy link
@NetanelBasal

NetanelBasal Mar 30, 2022

Member

this will not lead to a breaking change in applications?

});

describe('using beforeClose', () => {
Expand Down

0 comments on commit 3f9791c

Please sign in to comment.