]> git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/dashboard/frontend/src/app/shared/directives/copy2clipboard-button.directive.spec.ts
import 15.2.5
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / shared / directives / copy2clipboard-button.directive.spec.ts
1 import { TestBed } from '@angular/core/testing';
2
3 import { I18n } from '@ngx-translate/i18n-polyfill';
4
5 import { configureTestBed, i18nProviders } from '../../../testing/unit-test-helper';
6 import { Copy2ClipboardButtonDirective } from './copy2clipboard-button.directive';
7
8 describe('Copy2clipboardButtonDirective', () => {
9 configureTestBed({
10 providers: [i18nProviders]
11 });
12
13 it('should create an instance', () => {
14 const i18n = TestBed.get(I18n);
15 const directive = new Copy2ClipboardButtonDirective(null, null, null, i18n);
16 expect(directive).toBeTruthy();
17 });
18 });