@@ -27,6 +27,7 @@ class CustomModule {
27
27
}
28
28
29
29
@Component ( {
30
+ imports : [ QuillModule , FormsModule ] ,
30
31
selector : 'quill-test' ,
31
32
template : `
32
33
<quill-editor
@@ -92,6 +93,7 @@ class TestComponent {
92
93
}
93
94
94
95
@Component ( {
96
+ imports : [ FormsModule , QuillModule ] ,
95
97
selector : 'quill-toolbar-test' ,
96
98
template : `
97
99
<quill-editor
@@ -143,6 +145,7 @@ class TestToolbarComponent {
143
145
}
144
146
145
147
@Component ( {
148
+ imports : [ QuillModule , ReactiveFormsModule ] ,
146
149
selector : 'quill-reactive-test' ,
147
150
template : `
148
151
<quill-editor [formControl]='formControl' [minLength]='minLength'></quill-editor>
@@ -155,6 +158,7 @@ class ReactiveFormTestComponent {
155
158
}
156
159
157
160
@Component ( {
161
+ imports : [ QuillModule ] ,
158
162
selector : 'quill-module-test' ,
159
163
template : `
160
164
<quill-editor [modules]="{custom: true}" [customModules]="[{path: 'modules/custom', implementation: impl}]"></quill-editor>
@@ -166,6 +170,7 @@ class CustomModuleTestComponent {
166
170
}
167
171
168
172
@Component ( {
173
+ imports : [ QuillModule ] ,
169
174
selector : 'quill-async-module-test' ,
170
175
template : `
171
176
<quill-editor [modules]="{custom: true}" [customModules]="customModules"></quill-editor>
@@ -182,6 +187,7 @@ class CustomAsynchronousModuleTestComponent {
182
187
}
183
188
184
189
@Component ( {
190
+ imports : [ QuillModule , FormsModule ] ,
185
191
selector : 'quill-link-placeholder-test' ,
186
192
template : `
187
193
<quill-editor [ngModel]="content" [linkPlaceholder]="'https://test.de'"></quill-editor>
@@ -198,7 +204,7 @@ describe('Basic QuillEditorComponent', () => {
198
204
beforeEach ( ( ) => {
199
205
TestBed . configureTestingModule ( {
200
206
imports : [
201
- QuillModule
207
+
202
208
] ,
203
209
providers : QuillModule . forRoot ( ) . providers
204
210
} )
@@ -243,6 +249,7 @@ describe('Basic QuillEditorComponent', () => {
243
249
describe ( 'Formats' , ( ) => {
244
250
describe ( 'object' , ( ) => {
245
251
@Component ( {
252
+ imports : [ QuillModule , FormsModule ] ,
246
253
template : `
247
254
<quill-editor [(ngModel)]="title" format="object" (onEditorCreated)="handleEditorCreated($event)"></quill-editor>
248
255
`
@@ -262,8 +269,8 @@ describe('Formats', () => {
262
269
263
270
beforeEach ( async ( ) => {
264
271
TestBed . configureTestingModule ( {
265
- declarations : [ ObjectComponent ] ,
266
- imports : [ FormsModule , QuillModule ] ,
272
+ declarations : [ ] ,
273
+ imports : [ ] ,
267
274
providers : QuillModule . forRoot ( ) . providers
268
275
} )
269
276
@@ -303,6 +310,7 @@ describe('Formats', () => {
303
310
304
311
describe ( 'html' , ( ) => {
305
312
@Component ( {
313
+ imports : [ QuillModule , FormsModule ] ,
306
314
template : `
307
315
<quill-editor [(ngModel)]="title" format="html" (onEditorCreated)="handleEditorCreated($event)"></quill-editor>
308
316
`
@@ -317,6 +325,7 @@ describe('Formats', () => {
317
325
}
318
326
319
327
@Component ( {
328
+ imports : [ QuillModule , FormsModule ] ,
320
329
template : `
321
330
<quill-editor [(ngModel)]="title" [sanitize]="true" format="html" (onEditorCreated)="handleEditorCreated($event)"></quill-editor>
322
331
`
@@ -335,8 +344,8 @@ describe('Formats', () => {
335
344
336
345
beforeEach ( async ( ) => {
337
346
TestBed . configureTestingModule ( {
338
- declarations : [ HTMLComponent , HTMLSanitizeComponent ] ,
339
- imports : [ FormsModule , QuillModule . forRoot ( ) ]
347
+ declarations : [ ] ,
348
+ imports : [ QuillModule . forRoot ( ) ]
340
349
} )
341
350
342
351
fixture = TestBed . createComponent ( HTMLComponent ) as ComponentFixture < HTMLComponent >
@@ -385,6 +394,7 @@ unordered`)
385
394
386
395
describe ( 'text' , ( ) => {
387
396
@Component ( {
397
+ imports : [ QuillModule , FormsModule ] ,
388
398
template : `
389
399
<quill-editor [(ngModel)]="title" format="text" (onEditorCreated)="handleEditorCreated($event)"></quill-editor>
390
400
`
@@ -402,8 +412,8 @@ unordered`)
402
412
403
413
beforeEach ( ( ) => {
404
414
TestBed . configureTestingModule ( {
405
- declarations : [ TextComponent ] ,
406
- imports : [ FormsModule , QuillModule ] ,
415
+ declarations : [ ] ,
416
+ imports : [ ] ,
407
417
providers : QuillModule . forRoot ( ) . providers
408
418
} )
409
419
@@ -446,6 +456,7 @@ unordered`)
446
456
447
457
describe ( 'json' , ( ) => {
448
458
@Component ( {
459
+ imports : [ QuillModule , FormsModule ] ,
449
460
selector : 'json-valid' ,
450
461
template : `
451
462
<quill-editor [(ngModel)]="title" format="json" (onEditorCreated)="handleEditorCreated($event)"></quill-editor>
@@ -463,6 +474,7 @@ unordered`)
463
474
}
464
475
465
476
@Component ( {
477
+ imports : [ QuillModule , FormsModule ] ,
466
478
selector : 'quill-json-invalid' ,
467
479
template : `
468
480
<quill-editor [(ngModel)]="title" format="json" (onEditorCreated)="handleEditorCreated($event)"></quill-editor>
@@ -484,8 +496,8 @@ unordered`)
484
496
485
497
beforeEach ( async ( ) => {
486
498
TestBed . configureTestingModule ( {
487
- declarations : [ JSONComponent , JSONInvalidComponent ] ,
488
- imports : [ FormsModule , QuillModule . forRoot ( ) ]
499
+ declarations : [ ] ,
500
+ imports : [ QuillModule . forRoot ( ) ]
489
501
} )
490
502
491
503
fixture = TestBed . createComponent ( JSONComponent ) as ComponentFixture < JSONComponent >
@@ -540,6 +552,7 @@ unordered`)
540
552
541
553
describe ( 'Dynamic styles' , ( ) => {
542
554
@Component ( {
555
+ imports : [ QuillModule , FormsModule ] ,
543
556
template : `
544
557
<quill-editor
545
558
[bounds]="'self'"
@@ -565,7 +578,6 @@ describe('Dynamic styles', () => {
565
578
566
579
beforeEach ( ( ) => {
567
580
TestBed . configureTestingModule ( {
568
- declarations : [ StylingComponent ] ,
569
581
imports : [ FormsModule , QuillModule ] ,
570
582
providers : QuillModule . forRoot ( ) . providers
571
583
} )
@@ -594,6 +606,7 @@ describe('Dynamic styles', () => {
594
606
595
607
describe ( 'Dynamic classes' , ( ) => {
596
608
@Component ( {
609
+ imports : [ QuillModule , FormsModule ] ,
597
610
template : `
598
611
<quill-editor
599
612
[bounds]="'self'"
@@ -618,7 +631,7 @@ describe('Dynamic classes', () => {
618
631
619
632
beforeEach ( async ( ) => {
620
633
TestBed . configureTestingModule ( {
621
- declarations : [ ClassesComponent ] ,
634
+ declarations : [ ] ,
622
635
imports : [ FormsModule , QuillModule . forRoot ( ) ]
623
636
} )
624
637
@@ -665,7 +678,7 @@ describe('Reactive forms integration', () => {
665
678
666
679
beforeEach ( async ( ) => {
667
680
TestBed . configureTestingModule ( {
668
- declarations : [ ReactiveFormTestComponent ] ,
681
+ declarations : [ ] ,
669
682
imports : [ FormsModule , ReactiveFormsModule , QuillModule ] ,
670
683
providers : QuillModule . forRoot ( ) . providers
671
684
} )
@@ -754,7 +767,7 @@ describe('Advanced QuillEditorComponent', () => {
754
767
755
768
beforeEach ( async ( ) => {
756
769
TestBed . configureTestingModule ( {
757
- declarations : [ TestComponent , TestToolbarComponent , CustomLinkPlaceholderTestComponent ] ,
770
+ declarations : [ ] ,
758
771
imports : [ FormsModule , QuillModule ] ,
759
772
providers : QuillModule . forRoot ( ) . providers
760
773
} ) . compileComponents ( )
@@ -1290,7 +1303,7 @@ describe('QuillEditor - base config', () => {
1290
1303
beforeEach ( async ( ) => {
1291
1304
1292
1305
TestBed . configureTestingModule ( {
1293
- declarations : [ TestComponent , TestToolbarComponent ] ,
1306
+ declarations : [ ] ,
1294
1307
imports : [ FormsModule , QuillModule ] ,
1295
1308
providers : QuillModule . forRoot ( {
1296
1309
customModules : [ {
@@ -1367,7 +1380,7 @@ describe('QuillEditor - customModules', () => {
1367
1380
1368
1381
beforeEach ( ( ) => {
1369
1382
TestBed . configureTestingModule ( {
1370
- declarations : [ CustomModuleTestComponent ] ,
1383
+ declarations : [ ] ,
1371
1384
imports : [ FormsModule , QuillModule ] ,
1372
1385
providers : QuillModule . forRoot ( ) . providers
1373
1386
} ) . compileComponents ( )
@@ -1389,7 +1402,7 @@ describe('QuillEditor - customModules (asynchronous)', () => {
1389
1402
1390
1403
beforeEach ( ( ) => {
1391
1404
TestBed . configureTestingModule ( {
1392
- declarations : [ CustomAsynchronousModuleTestComponent ] ,
1405
+ declarations : [ ] ,
1393
1406
imports : [ FormsModule , QuillModule ] ,
1394
1407
providers : QuillModule . forRoot ( ) . providers
1395
1408
} ) . compileComponents ( )
@@ -1408,6 +1421,7 @@ describe('QuillEditor - customModules (asynchronous)', () => {
1408
1421
1409
1422
describe ( 'QuillEditor - defaultEmptyValue' , ( ) => {
1410
1423
@Component ( {
1424
+ imports : [ QuillModule ] ,
1411
1425
template : `
1412
1426
<quill-editor defaultEmptyValue=""></quill-editor>
1413
1427
`
@@ -1420,7 +1434,7 @@ describe('QuillEditor - defaultEmptyValue', () => {
1420
1434
1421
1435
beforeEach ( ( ) => {
1422
1436
TestBed . configureTestingModule ( {
1423
- declarations : [ DefaultEmptyValueTestComponent ] ,
1437
+ declarations : [ ] ,
1424
1438
imports : [ QuillModule ] ,
1425
1439
providers : QuillModule . forRoot ( ) . providers
1426
1440
} ) . compileComponents ( )
@@ -1437,6 +1451,7 @@ describe('QuillEditor - defaultEmptyValue', () => {
1437
1451
1438
1452
describe ( 'QuillEditor - beforeRender' , ( ) => {
1439
1453
@Component ( {
1454
+ imports : [ QuillModule ] ,
1440
1455
template : `
1441
1456
<quill-editor [beforeRender]="beforeRender"></quill-editor>
1442
1457
`
@@ -1453,7 +1468,7 @@ describe('QuillEditor - beforeRender', () => {
1453
1468
const config = { beforeRender : ( ) => Promise . resolve ( ) }
1454
1469
1455
1470
TestBed . configureTestingModule ( {
1456
- declarations : [ BeforeRenderTestComponent ] ,
1471
+ declarations : [ ] ,
1457
1472
imports : [ QuillModule . forRoot ( config ) ] ,
1458
1473
} )
1459
1474
@@ -1470,7 +1485,7 @@ describe('QuillEditor - beforeRender', () => {
1470
1485
const config = { beforeRender : ( ) => Promise . resolve ( ) }
1471
1486
1472
1487
TestBed . configureTestingModule ( {
1473
- declarations : [ BeforeRenderTestComponent ] ,
1488
+ declarations : [ ] ,
1474
1489
imports : [ QuillModule . forRoot ( config ) ] ,
1475
1490
} )
1476
1491
0 commit comments