This repository has been archived by the owner on Jan 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(directive): use directive on img element
close #10
- Loading branch information
1 parent
5587565
commit b162aad
Showing
2 changed files
with
12 additions
and
5 deletions.
There are no files selected for viewing
5 changes: 3 additions & 2 deletions
5
projects/ngx-ionic-image-viewer/src/lib/ngx-ionic-image-viewer.directive.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
import { ElementRef } from '@angular/core'; | ||
import { ElementRef, Renderer2 } from '@angular/core'; | ||
import { ModalController } from '@ionic/angular'; | ||
import { NgxIonicImageViewerDirective } from './ngx-ionic-image-viewer.directive'; | ||
|
||
describe('NgxIonicImageViewerDirective', () => { | ||
const el: ElementRef = null; | ||
const renderer: Renderer2 = null; | ||
const modalController: ModalController = null; | ||
|
||
it('should create an instance', () => { | ||
const directive = new NgxIonicImageViewerDirective(el, modalController); | ||
const directive = new NgxIonicImageViewerDirective(el, renderer, modalController); | ||
expect(directive).toBeTruthy(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters