/
app.test.ts.snap
2112 lines (1971 loc) · 111 KB
/
app.test.ts.snap
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Validate cli app --fail-fast no option Expect Error: [Function CheckFailed] 1`] = `Array []`;
exports[`Validate cli app --fail-fast no option Expect Error: [Function CheckFailed] 2`] = `
"error 0.00ms X
log ./samples/fail-fast/first-fail.txt:1:1 - Unknown word (iamtypo)
error 0.00ms X
log ./samples/fail-fast/second-fail.txt:1:1 - Unknown word (iamtypotoo)
error CSpell: Files checked: 2, Issues found: 2 in 2 files"
`;
exports[`Validate cli app --fail-fast no option Expect Error: [Function CheckFailed] 3`] = `
"
1/2 [90m./samples/fail-fast/first-fail.txt[39m
2/2 [90m./samples/fail-fast/second-fail.txt[39m"
`;
exports[`Validate cli app --fail-fast with config Expect Error: [Function CheckFailed] 1`] = `Array []`;
exports[`Validate cli app --fail-fast with config Expect Error: [Function CheckFailed] 2`] = `
"error 0.00ms X
log ./samples/fail-fast/first-fail.txt:1:1 - Unknown word (iamtypo)
error CSpell: Files checked: 1, Issues found: 1 in 1 files"
`;
exports[`Validate cli app --fail-fast with config Expect Error: [Function CheckFailed] 3`] = `
"
1/2 [90m./samples/fail-fast/first-fail.txt[39m"
`;
exports[`Validate cli app --fail-fast with option Expect Error: [Function CheckFailed] 1`] = `Array []`;
exports[`Validate cli app --fail-fast with option Expect Error: [Function CheckFailed] 2`] = `
"error 0.00ms X
log ./samples/fail-fast/first-fail.txt:1:1 - Unknown word (iamtypo)
error CSpell: Files checked: 1, Issues found: 1 in 1 files"
`;
exports[`Validate cli app --fail-fast with option Expect Error: [Function CheckFailed] 3`] = `
"
1/2 [90m./samples/fail-fast/first-fail.txt[39m"
`;
exports[`Validate cli app --help Expect Error: outputHelp 1`] = `
Array [
"Usage: cspell [options] [command]",
"",
"Spelling Checker for Code",
"",
"Options:",
" -V, --version output the version number",
" -h, --help display help for command",
"",
"Commands:",
" lint [options] [globs...] Check spelling",
" trace [options] [words...] Trace words -- Search for words in the",
" configuration and dictionaries.",
" check [options] <files...> Spell check file(s) and display the",
" result. The full file is displayed in",
" color.",
" link Link dictionaries and other settings to",
" the cspell global config.",
" suggestions|sug [options] [words...] Spelling Suggestions for words.",
" help [command] display help for command",
"",
]
`;
exports[`Validate cli app --help Expect Error: outputHelp 2`] = `""`;
exports[`Validate cli app --help Expect Error: outputHelp 3`] = `""`;
exports[`Validate cli app --no-fail-fast with config Expect Error: [Function CheckFailed] 1`] = `Array []`;
exports[`Validate cli app --no-fail-fast with config Expect Error: [Function CheckFailed] 2`] = `
"error 0.00ms X
log ./samples/fail-fast/first-fail.txt:1:1 - Unknown word (iamtypo)
error 0.00ms X
log ./samples/fail-fast/second-fail.txt:1:1 - Unknown word (iamtypotoo)
error CSpell: Files checked: 2, Issues found: 2 in 2 files"
`;
exports[`Validate cli app --no-fail-fast with config Expect Error: [Function CheckFailed] 3`] = `
"
1/2 [90m./samples/fail-fast/first-fail.txt[39m
2/2 [90m./samples/fail-fast/second-fail.txt[39m"
`;
exports[`Validate cli app LICENSE Expect Error: undefined 1`] = `Array []`;
exports[`Validate cli app LICENSE Expect Error: undefined 2`] = `
"error 0.00ms
error CSpell: Files checked: 1, Issues found: 0 in 0 files"
`;
exports[`Validate cli app LICENSE Expect Error: undefined 3`] = `
"
1/1 [90m./LICENSE[39m"
`;
exports[`Validate cli app bad config Expect Error: [Function CheckFailed] 1`] = `Array []`;
exports[`Validate cli app bad config Expect Error: [Function CheckFailed] 2`] = `
"error Configuration Error: Failed to find config file at: \\"./src/app.test.ts\\"
error CSpell: Files checked: 0, Issues found: 0 in 0 files"
`;
exports[`Validate cli app bad config Expect Error: [Function CheckFailed] 3`] = `""`;
exports[`Validate cli app check LICENSE Expect Error: undefined 1`] = `
Array [
"[97mMIT License[39m",
"[97m[39m",
"[97mCopyright (c) 2017 Jason Dent[39m",
"[97m[39m",
"[97mPermission is hereby granted, free of charge, to any person obtaining a copy[39m",
"[97mof this software and associated documentation files (the \\"Software\\"), to deal[39m",
"[97min the Software without restriction, including without limitation the rights[39m",
"[97mto use, copy, modify, merge, publish, distribute, sublicense, and/or sell[39m",
"[97mcopies of the Software, and to permit persons to whom the Software is[39m",
"[97mfurnished to do so, subject to the following conditions:[39m",
"[97m[39m",
"[97mThe above copyright notice and this permission notice shall be included in all[39m",
"[97mcopies or substantial portions of the Software.[39m",
"[97m[39m",
"[97mTHE SOFTWARE IS PROVIDED \\"AS IS\\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR[39m",
"[97mIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,[39m",
"[97mFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE[39m",
"[97mAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER[39m",
"[97mLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,[39m",
"[97mOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE[39m",
"[97mSOFTWARE.[39m",
"[97m[39m",
]
`;
exports[`Validate cli app check LICENSE Expect Error: undefined 2`] = `
"log Check file: ./LICENSE
log
log
log "
`;
exports[`Validate cli app check LICENSE Expect Error: undefined 3`] = `""`;
exports[`Validate cli app check help Expect Error: outputHelp 1`] = `
Array [
"Usage: cspell check [options] <files...>",
"",
"Spell check file(s) and display the result. The full file is displayed in color.",
"",
"Options:",
" -c, --config <cspell.json> Configuration file to use. By default cspell",
" looks for cspell.json in the current directory.",
" --no-color Turn off color.",
" --color Force color",
" -h, --help display help for command",
"",
]
`;
exports[`Validate cli app check help Expect Error: outputHelp 2`] = `""`;
exports[`Validate cli app check help Expect Error: outputHelp 3`] = `""`;
exports[`Validate cli app check missing Expect Error: [Function CheckFailed] 1`] = `Array []`;
exports[`Validate cli app check missing Expect Error: [Function CheckFailed] 2`] = `
"log Check file: ./missing-file.txt
log
error File not found \\"./missing-file.txt\\""
`;
exports[`Validate cli app check missing Expect Error: [Function CheckFailed] 3`] = `""`;
exports[`Validate cli app check with spelling errors Expect Error: [Function CheckFailed] 1`] = `
Array [
"[97m [[39m[31mNEDERLANDS[39m[97m][39m",
"[97m U [39m[31mwordt[39m[97m [39m[31mvriendelijk[39m[97m [39m[31mverzocht[39m[97m om dit [39m[31mbestand[39m[97m (\\"README_nl_NL.txt\\")[39m",
"[97m te [39m[31mlezen[39m[97m en mee te [39m[31mleveren[39m[97m bij [39m[31miedere[39m[97m [39m[31mkopie[39m[97m van dit [39m[31mtaalhulpbestand[39m[97m.[39m",
"[97m[39m",
"[97m1. [39m[31mNaam[39m[97m: [39m[31mNederlandstalige[39m[97m [39m[31mwoordenlijst[39m[97m [39m[31mvoor[39m[97m [39m[31mspellingcontrole[39m[97m - OpenTaal[39m",
"[97m2. [39m[31mVersie[39m[97m [39m[31mwoordenlijst[39m[97m: 2.00G; [39m[31mversie[39m[97m [39m[31mspellingcontrole[39m[97m: 2.00G.[39m",
"[97m3. [39m[31mVereisten[39m[97m: Hunspell 1.2.8 en [39m[31mhoger[39m[97m[39m",
"[97m4. [39m[31mKeurmerk[39m[97m Spelling [39m[31mNederlandse[39m[97m [39m[31mTaalunie[39m[97m: De [39m[31mlijst[39m[97m met [39m[31mbasiswoorden[39m[97m van[39m",
"[97m OpenTaal [39m[31mdraagt[39m[97m het [39m[31mkeurmerk[39m[97m van de [39m[31mNederlandse[39m[97m [39m[31mTaalunie[39m[97m. [39m[31mVoor[39m[97m [39m[31mmeer[39m[97m[39m",
"[97m [39m[31minformatie[39m[97m zie: [39m[90mhttp://www.taalunieversum.org/keurmerk[39m[97m[39m",
"[97m5. [39m[31mAuteursrechten[39m[97m: © 2006-2010 OpenTaal, © 2001-2005 Simon [39m[31mBrouwer[39m[97m e.a.,[39m",
"[97m © 1996 [39m[31mNederlandstalige[39m[97m Tex [39m[31mGebruikersgroep[39m[97m[39m",
"[97m6. [39m[31mLicenties[39m[97m: OpenTaal [39m[31mheeft[39m[97m als [39m[31mdoel[39m[97m om [39m[31mvrij[39m[97m [39m[31mbeschikbare[39m[97m [39m[31mNederlandstalige[39m[97m[39m",
"[97m [39m[31mtaalhulpbestanden[39m[97m te [39m[31montwikkelen[39m[97m en te [39m[31mverspreiden[39m[97m. Om breed (her)[39m[31mgebruik[39m[97m[39m",
"[97m [39m[31mmogelijk[39m[97m te [39m[31mmaken[39m[97m [39m[31mzijn[39m[97m de [39m[31mtaalhulpbestanden[39m[97m gratis [39m[31mbeschikbaar[39m[97m [39m[31monder[39m[97m de twee[39m",
"[97m [39m[31monderstaande[39m[97m, [39m[31mliberale[39m[97m [39m[31mlicenties[39m[97m [39m[31mnaar[39m[97m [39m[31mkeuze[39m[97m van de [39m[31mgebruiker[39m[97m. U [39m[31mwordt[39m[97m ten[39m",
"[97m [39m[31mzeerste[39m[97m [39m[31maangeraden[39m[97m om [39m[31mvoorafgaand[39m[97m aan het [39m[31mgebruik[39m[97m [39m[31mkennis[39m[97m te [39m[31mnemen[39m[97m van de[39m",
"[97m [39m[31mtoepasselijke[39m[97m [39m[31mlicentie[39m[97m.[39m",
"[97m A. BSD ([39m[31mherziene[39m[97m [39m[31mversie[39m[97m):[39m",
"[97m - [39m[31mVolledige[39m[97m [39m[31mlicentie[39m[97m: [39m[90mhttp://creativecommons.org/licenses/BSD/legalcode[39m[97m[39m",
"[97m - [39m[31mSamenvatting[39m[97m: [39m[90mhttp://creativecommons.org/licenses/BSD/deed.nl[39m[97m[39m",
"[97m B. Creative Commons, [39m[31mNaamsvermelding[39m[97m 3.0 ([39m[31munported[39m[97m)[39m",
"[97m - [39m[31mVolledige[39m[97m [39m[31mlicentie[39m[97m: [39m[90mhttp://creativecommons.org/licenses/by/3.0/legalcode[39m[97m[39m",
"[97m - [39m[31mSamenvatting[39m[97m: [39m[90mhttp://creativecommons.org/licenses/by/3.0/deed.nl[39m[97m[39m",
"[97m7. [39m[31mSteun[39m[97m OpenTaal: OpenTaal is een [39m[31mvrijwilligersproject[39m[97m [39m[31mzonder[39m[97m [39m[31mwinstoogmerk[39m[97m.[39m",
"[97m Door uw ([39m[31mkleine[39m[97m) [39m[31mfinanciële[39m[97m [39m[31msteun[39m[97m kan OpenTaal [39m[31mmeer[39m[97m [39m[31mactiviteiten[39m[97m [39m[31montplooien[39m[97m[39m",
"[97m en het project [39m[31mprofessionaliseren[39m[97m. Uw [39m[31mdonatie[39m[97m is van harte [39m[31mwelkom[39m[97m op[39m",
"[97m [39m[31mrekeningnummer[39m[97m 15.62.32.782 t.n.v. [39m[31mStichting[39m[97m OpenTaal. Uw [39m[31mgiften[39m[97m [39m[31mzijn[39m[97m[39m",
"[97m [39m[31maftrekbaar[39m[97m van de [39m[31mbelasting[39m[97m. [39m[31mStichting[39m[97m OpenTaal is [39m[31mnamelijk[39m[97m door de[39m",
"[97m [39m[31mBelastingdienst[39m[97m [39m[31merkend[39m[97m als [39m[31mANBI[39m[97m, [39m[31moftewel[39m[97m \\"[39m[31mAlgemeen[39m[97m Nut [39m[31mBeogende[39m[97m [39m[31mInstelling[39m[97m\\".[39m",
"[97m Zie: [39m[90mhttp://belastingdienst.nl/anbi/[39m[97m[39m",
"[97m8. [39m[31mMeedoen[39m[97m: [39m[31mIedereen[39m[97m is [39m[31mwelkom[39m[97m om mee te [39m[31mdoen[39m[97m. Meld [39m[31mfouten[39m[97m, [39m[31mdiscussieer[39m[97m mee op[39m",
"[97m de [39m[31mmailinglijst[39m[97m of [39m[31mdraai[39m[97m Harvester. Door bij te [39m[31mdragen[39m[97m aan het project [39m[31mstemt[39m[97m[39m",
"[97m u [39m[31mermee[39m[97m in dat uw [39m[31mbijdrage[39m[97m aan het [39m[31mdesbetreffende[39m[97m [39m[31mtaalhulpbestand[39m[97m [39m[31mbeschikbaar[39m[97m[39m",
"[97m [39m[31mkomt[39m[97m [39m[31monder[39m[97m [39m[31mvrije[39m[97m en/of [39m[31mopensource[39m[97m [39m[31mlicenties[39m[97m. [39m[31mIndien[39m[97m u dat [39m[31mwenst[39m[97m, dan kan uw[39m",
"[97m [39m[31mnaam[39m[97m op de website [39m[31mgenoemd[39m[97m [39m[31mworden[39m[97m. We [39m[31montvangen[39m[97m uw [39m[31mschriftelijk[39m[97m [39m[31mverzoek[39m[97m[39m",
"[97m [39m[31mdaarvoor[39m[97m [39m[31mgraag[39m[97m.[39m",
"[97m9. [39m[31mRechten[39m[97m van [39m[31mderden[39m[97m: OpenTaal [39m[31mrespecteert[39m[97m de [39m[31mrechten[39m[97m van [39m[31mderden[39m[97m en[39m",
"[97m wil haar [39m[31mgegevens[39m[97m [39m[31mvrij[39m[97m [39m[31mbeschikbaar[39m[97m [39m[31mhouden[39m[97m. [39m[31mVoor[39m[97m [39m[31mbijdragen[39m[97m aan het project mag[39m",
"[97m u [39m[31mdaarom[39m[97m [39m[31mniet[39m[97m [39m[31mzonder[39m[97m [39m[31mtoestemming[39m[97m [39m[31mgebruikmaken[39m[97m van [39m[31mbeschermde[39m[97m [39m[31mnaslagwerken[39m[97m,[39m",
"[97m [39m[31mzoals[39m[97m [39m[31mwoordenboeken[39m[97m. Wel is het [39m[31mtoegestaan[39m[97m om [39m[31mgebruik[39m[97m te [39m[31mmaken[39m[97m van de[39m",
"[97m [39m[31mmaterialen[39m[97m van de [39m[31mNederlandse[39m[97m [39m[31mTaalunie[39m[97m, [39m[31mzoals[39m[97m de [39m[31mleidraad[39m[97m en de [39m[31mwoordenlijst[39m[97m.[39m",
"[97m [39m[31mIndien[39m[97m u van [39m[31mmening[39m[97m bent dat OpenTaal [39m[31minbreuk[39m[97m [39m[31mmaakt[39m[97m op uw [39m[31mrechten[39m[97m, dan[39m",
"[97m [39m[31mverzoeken[39m[97m we u [39m[31mhierover[39m[97m zo [39m[31mspoedig[39m[97m [39m[31mmogelijk[39m[97m [39m[31mschriftelijk[39m[97m contact met ons op[39m",
"[97m te [39m[31mnemen[39m[97m.[39m",
"[97m10.Contact: [39m[31mStichting[39m[97m OpenTaal, [39m[90mhttp://www.opentaal.org,[39m[97m [39m[90mbestuur@opentaal.org[39m[97m[39m",
"[97m_________________________________________________________________________________[39m",
"[97m [ENGLISH][39m",
"[97m You are kindly requested to read this file \\"README_nl_NL.txt\\"[39m",
"[97m and to keep a copy of it with every copy you make of this language file.[39m",
"[97m[39m",
"[97m1. Name: Dutch word list for spell checking - OpenTaal[39m",
"[97m2. Version of words list: 2.00G; version spell checking: 2.00G[39m",
"[97m3. Requirements: Hunspell 1.2.8 and higher[39m",
"[97m4. Spelling Seal of Dutch Language Union: The OpenTaal list of lemmas has[39m",
"[97m received the Spelling Seal of Approval from the Dutch Language Union, the[39m",
"[97m formal Dutch language institute. For more information please see:[39m",
"[97m [39m[90mhttp://www.taalunieversum.org/keurmerk/[39m[97m[39m",
"[97m5. Copyrights: © 2006-2010 OpenTaal, © 2001-2005 Simon [39m[31mBrouwer[39m[97m e.a.,[39m",
"[97m © 1996 [39m[31mNederlandstalige[39m[97m Tex [39m[31mGebruikersgroep[39m[97m[39m",
"[97m6. Licenses: OpenTaal aims to create and publish free Dutch language files. To[39m",
"[97m enable the broadest (re)use the language files are freely available under the[39m",
"[97m below, liberal licenses at the discretion of the user. We strongly recommend[39m",
"[97m to read the applicable license before usage.[39m",
"[97m A. BSD (revised version):[39m",
"[97m - Full license text: [39m[90mhttp://creativecommons.org/licenses/BSD/legalcode[39m[97m[39m",
"[97m - Summary: [39m[90mhttp://creativecommons.org/licenses/BSD/deed.en[39m[97m[39m",
"[97m B. Creative Commons, Attribution 3.0 ([39m[31munported[39m[97m)[39m",
"[97m - Full license text: [39m[90mhttp://creativecommons.org/licenses/by/3.0/legalcode[39m[97m[39m",
"[97m - Summary: [39m[90mhttp://creativecommons.org/licenses/by/3.0/deed.en[39m[97m[39m",
"[97m7. Support OpenTaal: OpenTaal is a non-profit volunteer project. With your[39m",
"[97m (small) financial support OpenTaal will further expand its activities and[39m",
"[97m enhance its professionalism. Your donation is welcome at[39m",
"[97m account number: 15.62.32.782, BIC: [39m[31mRABONL[39m[97m2U, [39m[31mIBAN[39m[97m: NL88[39m[31mRABO[39m[97m0156232782 of[39m",
"[97m [39m[31mStichting[39m[97m OpenTaal / OpenTaal Foundation. In the Netherlands your donations[39m",
"[97m are tax deductible. OpenTaal Foundation has been designated by the Dutch Tax[39m",
"[97m Administration as an Institution for General Benefit ([39m[31malgemeen[39m[97m nut [39m[31mbeogende[39m[97m[39m",
"[97m [39m[31minstelling[39m[97m or [39m[31mANBI[39m[97m). Please see: [39m[90mhttp://belastingdienst.nl/anbi/[39m[97m[39m",
"[97m8. Participate: Everyone is welcome to participate. Please give feedback,[39m",
"[97m discuss on the mailing list or run Harvester. By contributing to the project[39m",
"[97m you agree that your contribution is available under free or/open source[39m",
"[97m licenses. In case you wish, your name will be mentioned on the website. Your[39m",
"[97m are invited to send us your written request.[39m",
"[97m9. Rights of third parties: OpenTaal respects the rights of third parties and[39m",
"[97m aims to keep its data freely available. Therefore you may no use protected[39m",
"[97m sources of third parties, i.e. dictionaries, without their permission when[39m",
"[97m you contribute to the project. It is permitted to use the materials of the[39m",
"[97m Dutch Language Union, i.e. their spelling instruction and word list. In case[39m",
"[97m you believe OpenTaal is violating your rights, we ask you to send us a[39m",
"[97m written notice as soon as possible.[39m",
"[97m10.Contact: OpenTaal Foundation, [39m[90mhttp://www.opentaal.org,[39m[97m [39m[90mbestuur@opentaal.org[39m[97m[39m",
"[97m[39m",
"[97mcspell:language en,nl[39m",
"[97m[39m",
]
`;
exports[`Validate cli app check with spelling errors Expect Error: [Function CheckFailed] 2`] = `
"log Check file: ./samples/Dutch.txt
log
log
log "
`;
exports[`Validate cli app check with spelling errors Expect Error: [Function CheckFailed] 3`] = `""`;
exports[`Validate cli app cspell-bad.json Expect Error: undefined 1`] = `Array []`;
exports[`Validate cli app cspell-bad.json Expect Error: undefined 2`] = `
"error 0.00ms
error CSpell: Files checked: 1, Issues found: 0 in 0 files"
`;
exports[`Validate cli app cspell-bad.json Expect Error: undefined 3`] = `
"
1/1 [90m./src/app.test.ts[39m"
`;
exports[`Validate cli app cspell-import-missing.json Expect Error: [Function CheckFailed] 1`] = `Array []`;
exports[`Validate cli app cspell-import-missing.json Expect Error: [Function CheckFailed] 2`] = `
"error Configuration Error: Failed to read config file: \\"./samples/intentionally-missing-file.json\\"
error CSpell: Files checked: 0, Issues found: 0 in 0 files"
`;
exports[`Validate cli app cspell-import-missing.json Expect Error: [Function CheckFailed] 3`] = `""`;
exports[`Validate cli app current_file --verbose Expect Error: undefined 1`] = `Array []`;
exports[`Validate cli app current_file --verbose Expect Error: undefined 2`] = `
"info
info cspell;
info Date: Sat, 03 Apr 2021 11:25:33 GMT
info Options:
info verbose: Yes
info config: default
info exclude: node_modules/**
info files: src/app.test.ts
info wordsOnly: No
info unique: No
info
info Config Files Found:
info ./cspell.json
info
info Exclusion Globs:
info Glob: *.snap from ./cspell.json
info Glob: node_modules from ./cspell.json
info Glob: package-lock.json from ./cspell.json
info Glob: coverage/** from ./cspell.json
info Glob: dist/** from ./cspell.json
info Glob: package.json from ./cspell.json
info Glob: .cspell.json from ./cspell.json
info Glob: .vscode/** from ./cspell.json
info Glob: node_modules/** from command line
info
info Checking: ./src/app.test.ts, File type: auto, Language: default
info Checked: ./src/app.test.ts, File type: typescript, Language: en ... Issues: 0 0.00S
info Config file Used: ./cspell.json
info Dictionaries Used: backwards-compatibility, companies, filetypes, public-licenses, softwareTerms, workspace, aws, cryptocurrencies, en_us, fullstack, node, npm, typescript
error 0.00ms
error CSpell: Files checked: 1, Issues found: 0 in 0 files"
`;
exports[`Validate cli app current_file --verbose Expect Error: undefined 3`] = `
"
1/1 [90m./src/app.test.ts[39m"
`;
exports[`Validate cli app current_file Expect Error: undefined 1`] = `Array []`;
exports[`Validate cli app current_file Expect Error: undefined 2`] = `
"error 0.00ms
error CSpell: Files checked: 1, Issues found: 0 in 0 files"
`;
exports[`Validate cli app current_file Expect Error: undefined 3`] = `
"
1/1 [90m./src/app.test.ts[39m"
`;
exports[`Validate cli app current_file languageId Expect Error: undefined 1`] = `Array []`;
exports[`Validate cli app current_file languageId Expect Error: undefined 2`] = `
"error 0.00ms
error CSpell: Files checked: 1, Issues found: 0 in 0 files"
`;
exports[`Validate cli app current_file languageId Expect Error: undefined 3`] = `
"
1/1 [90m./src/app.test.ts[39m"
`;
exports[`Validate cli app link 1`] = `""`;
exports[`Validate cli app link add 1`] = `""`;
exports[`Validate cli app link list 1`] = `""`;
exports[`Validate cli app link ls 1`] = `""`;
exports[`Validate cli app link remove 1`] = `""`;
exports[`Validate cli app must find force no error Expect Error: undefined 1`] = `Array []`;
exports[`Validate cli app must find force no error Expect Error: undefined 2`] = `"error CSpell: Files checked: 0, Issues found: 0 in 0 files"`;
exports[`Validate cli app must find force no error Expect Error: undefined 3`] = `""`;
exports[`Validate cli app must find with error Expect Error: [Function CheckFailed] 1`] = `Array []`;
exports[`Validate cli app must find with error Expect Error: [Function CheckFailed] 2`] = `"error CSpell: Files checked: 0, Issues found: 0 in 0 files"`;
exports[`Validate cli app must find with error Expect Error: [Function CheckFailed] 3`] = `""`;
exports[`Validate cli app no-args Expect Error: outputHelp 1`] = `
Array [
"Usage: cspell lint [options] [globs...]",
"",
"Check spelling",
"",
"Options:",
" -c, --config <cspell.json> Configuration file to use. By default cspell",
" looks for cspell.json in the current directory.",
" -v, --verbose Display more information about the files being",
" checked and the configuration.",
" --locale <locale> Set language locales. i.e. \\"en,fr\\" for English",
" and French, or \\"en-GB\\" for British English.",
" --language-id <language> Force programming language for unknown",
" extensions. i.e. \\"php\\" or \\"scala\\"",
" --words-only Only output the words not found in the",
" dictionaries.",
" -u, --unique Only output the first instance of a word not",
" found in the dictionaries.",
" -e, --exclude <glob> Exclude files matching the glob pattern. This",
" option can be used multiple times to add",
" multiple globs.",
" --file-list <path or stdin> Specify a list of files to be spell checked. The",
" list is filtered against the glob file patterns.",
" Note: the format is 1 file path per line.",
" --no-issues Do not show the spelling errors.",
" --no-progress Turn off progress messages",
" --no-summary Turn off summary message in console.",
" -s, --silent Silent mode, suppress error messages.",
" --fail-fast Exit after first file with an issue or error.",
" -r, --root <root folder> Root directory, defaults to current directory.",
" --relative Issues are displayed relative to root.",
" --show-context Show the surrounding text around an issue.",
" --show-suggestions Show spelling suggestions.",
" --no-must-find-files Do not error if no files are found.",
" --cache Use cache to only check changed files.",
" --no-cache Do not use cache.",
" --cache-strategy <strategy> Strategy to use for detecting changed files.",
" (choices: \\"metadata\\", \\"content\\")",
" --cache-location <path> Path to the cache file or directory. (default:",
" \\".cspellcache\\")",
" --dot Include files and directories starting with \`.\`",
" (period) when matching globs.",
" --gitignore Ignore files matching glob patterns found in",
" .gitignore files.",
" --no-gitignore Do NOT use .gitignore files.",
" --gitignore-root <path> Prevent searching for .gitignore files past",
" root.",
" --no-color Turn off color.",
" --color Force color.",
" --debug Output information useful for debugging",
" cspell.json files.",
" -h, --help display help for command",
"",
"",
"Examples:",
" cspell \\"*.js\\" Check all .js files in the current directory",
" cspell \\"**/*.js\\" Check all .js files from the current directory",
" cspell \\"src/**/*.js\\" Only check .js under src",
" cspell \\"**/*.txt\\" \\"**/*.js\\" Check both .js and .txt files.",
" cspell \\"**/*.{txt,js,md}\\" Check .txt, .js, and .md files.",
" cat LICENSE | cspell stdin Check stdin",
"",
"",
]
`;
exports[`Validate cli app no-args Expect Error: outputHelp 2`] = `""`;
exports[`Validate cli app no-args Expect Error: outputHelp 3`] = `""`;
exports[`Validate cli app not found error by default Expect Error: [Function CheckFailed] 1`] = `Array []`;
exports[`Validate cli app not found error by default Expect Error: [Function CheckFailed] 2`] = `"error CSpell: Files checked: 0, Issues found: 0 in 0 files"`;
exports[`Validate cli app not found error by default Expect Error: [Function CheckFailed] 3`] = `""`;
exports[`Validate cli app samples/Dutch.txt Expect Error: [Function CheckFailed] 1`] = `Array []`;
exports[`Validate cli app samples/Dutch.txt Expect Error: [Function CheckFailed] 2`] = `
"error 0.00ms X
log ./samples/Dutch.txt:1:32 - Unknown word (NEDERLANDS)
log ./samples/Dutch.txt:2:11 - Unknown word (wordt)
log ./samples/Dutch.txt:2:17 - Unknown word (vriendelijk)
log ./samples/Dutch.txt:2:29 - Unknown word (verzocht)
log ./samples/Dutch.txt:2:45 - Unknown word (bestand)
log ./samples/Dutch.txt:3:10 - Unknown word (lezen)
log ./samples/Dutch.txt:3:26 - Unknown word (leveren)
log ./samples/Dutch.txt:3:38 - Unknown word (iedere)
log ./samples/Dutch.txt:3:45 - Unknown word (kopie)
log ./samples/Dutch.txt:3:59 - Unknown word (taalhulpbestand)
log ./samples/Dutch.txt:5:4 - Unknown word (Naam)
log ./samples/Dutch.txt:5:10 - Unknown word (Nederlandstalige)
log ./samples/Dutch.txt:5:27 - Unknown word (woordenlijst)
log ./samples/Dutch.txt:5:40 - Unknown word (voor)
log ./samples/Dutch.txt:5:45 - Unknown word (spellingcontrole)
log ./samples/Dutch.txt:6:4 - Unknown word (Versie)
log ./samples/Dutch.txt:6:11 - Unknown word (woordenlijst)
log ./samples/Dutch.txt:6:32 - Unknown word (versie)
log ./samples/Dutch.txt:6:39 - Unknown word (spellingcontrole)
log ./samples/Dutch.txt:7:4 - Unknown word (Vereisten)
log ./samples/Dutch.txt:7:33 - Unknown word (hoger)
log ./samples/Dutch.txt:8:4 - Unknown word (Keurmerk)
log ./samples/Dutch.txt:8:22 - Unknown word (Nederlandse)
log ./samples/Dutch.txt:8:34 - Unknown word (Taalunie)
log ./samples/Dutch.txt:8:47 - Unknown word (lijst)
log ./samples/Dutch.txt:8:57 - Unknown word (basiswoorden)
log ./samples/Dutch.txt:9:13 - Unknown word (draagt)
log ./samples/Dutch.txt:9:24 - Unknown word (keurmerk)
log ./samples/Dutch.txt:9:40 - Unknown word (Nederlandse)
log ./samples/Dutch.txt:9:52 - Unknown word (Taalunie)
log ./samples/Dutch.txt:9:62 - Unknown word (Voor)
log ./samples/Dutch.txt:9:67 - Unknown word (meer)
log ./samples/Dutch.txt:10:4 - Unknown word (informatie)
log ./samples/Dutch.txt:11:4 - Unknown word (Auteursrechten)
log ./samples/Dutch.txt:11:60 - Unknown word (Brouwer)
log ./samples/Dutch.txt:12:11 - Unknown word (Nederlandstalige)
log ./samples/Dutch.txt:12:32 - Unknown word (Gebruikersgroep)
log ./samples/Dutch.txt:13:4 - Unknown word (Licenties)
log ./samples/Dutch.txt:13:24 - Unknown word (heeft)
log ./samples/Dutch.txt:13:34 - Unknown word (doel)
log ./samples/Dutch.txt:13:42 - Unknown word (vrij)
log ./samples/Dutch.txt:13:47 - Unknown word (beschikbare)
log ./samples/Dutch.txt:13:59 - Unknown word (Nederlandstalige)
log ./samples/Dutch.txt:14:4 - Unknown word (taalhulpbestanden)
log ./samples/Dutch.txt:14:25 - Unknown word (ontwikkelen)
log ./samples/Dutch.txt:14:43 - Unknown word (verspreiden)
log ./samples/Dutch.txt:14:70 - Unknown word (gebruik)
log ./samples/Dutch.txt:15:4 - Unknown word (mogelijk)
log ./samples/Dutch.txt:15:16 - Unknown word (maken)
log ./samples/Dutch.txt:15:22 - Unknown word (zijn)
log ./samples/Dutch.txt:15:30 - Unknown word (taalhulpbestanden)
log ./samples/Dutch.txt:15:55 - Unknown word (beschikbaar)
log ./samples/Dutch.txt:15:67 - Unknown word (onder)
log ./samples/Dutch.txt:16:4 - Unknown word (onderstaande)
log ./samples/Dutch.txt:16:18 - Unknown word (liberale)
log ./samples/Dutch.txt:16:27 - Unknown word (licenties)
log ./samples/Dutch.txt:16:37 - Unknown word (naar)
log ./samples/Dutch.txt:16:42 - Unknown word (keuze)
log ./samples/Dutch.txt:16:55 - Unknown word (gebruiker)
log ./samples/Dutch.txt:16:68 - Unknown word (wordt)
log ./samples/Dutch.txt:17:4 - Unknown word (zeerste)
log ./samples/Dutch.txt:17:12 - Unknown word (aangeraden)
log ./samples/Dutch.txt:17:26 - Unknown word (voorafgaand)
log ./samples/Dutch.txt:17:46 - Unknown word (gebruik)
log ./samples/Dutch.txt:17:54 - Unknown word (kennis)
log ./samples/Dutch.txt:17:64 - Unknown word (nemen)
log ./samples/Dutch.txt:18:4 - Unknown word (toepasselijke)
log ./samples/Dutch.txt:18:18 - Unknown word (licentie)
log ./samples/Dutch.txt:19:12 - Unknown word (herziene)
log ./samples/Dutch.txt:19:21 - Unknown word (versie)
log ./samples/Dutch.txt:20:6 - Unknown word (Volledige)
log ./samples/Dutch.txt:20:16 - Unknown word (licentie)
log ./samples/Dutch.txt:21:6 - Unknown word (Samenvatting)
log ./samples/Dutch.txt:22:25 - Unknown word (Naamsvermelding)
log ./samples/Dutch.txt:22:46 - Unknown word (unported)
log ./samples/Dutch.txt:23:6 - Unknown word (Volledige)
log ./samples/Dutch.txt:23:16 - Unknown word (licentie)
log ./samples/Dutch.txt:24:6 - Unknown word (Samenvatting)
log ./samples/Dutch.txt:25:4 - Unknown word (Steun)
log ./samples/Dutch.txt:25:36 - Unknown word (vrijwilligersproject)
log ./samples/Dutch.txt:25:57 - Unknown word (zonder)
log ./samples/Dutch.txt:25:64 - Unknown word (winstoogmerk)
log ./samples/Dutch.txt:26:13 - Unknown word (kleine)
log ./samples/Dutch.txt:26:21 - Unknown word (financiële)
log ./samples/Dutch.txt:26:32 - Unknown word (steun)
log ./samples/Dutch.txt:26:51 - Unknown word (meer)
log ./samples/Dutch.txt:26:56 - Unknown word (activiteiten)
log ./samples/Dutch.txt:26:69 - Unknown word (ontplooien)
log ./samples/Dutch.txt:27:19 - Unknown word (professionaliseren)
log ./samples/Dutch.txt:27:42 - Unknown word (donatie)
log ./samples/Dutch.txt:27:63 - Unknown word (welkom)
log ./samples/Dutch.txt:28:4 - Unknown word (rekeningnummer)
log ./samples/Dutch.txt:28:39 - Unknown word (Stichting)
log ./samples/Dutch.txt:28:62 - Unknown word (giften)
log ./samples/Dutch.txt:28:69 - Unknown word (zijn)
log ./samples/Dutch.txt:29:4 - Unknown word (aftrekbaar)
log ./samples/Dutch.txt:29:22 - Unknown word (belasting)
log ./samples/Dutch.txt:29:33 - Unknown word (Stichting)
log ./samples/Dutch.txt:29:55 - Unknown word (namelijk)
log ./samples/Dutch.txt:30:4 - Unknown word (Belastingdienst)
log ./samples/Dutch.txt:30:20 - Unknown word (erkend)
log ./samples/Dutch.txt:30:31 - Unknown word (ANBI)
log ./samples/Dutch.txt:30:37 - Unknown word (oftewel)
log ./samples/Dutch.txt:30:46 - Unknown word (Algemeen)
log ./samples/Dutch.txt:30:59 - Unknown word (Beogende)
log ./samples/Dutch.txt:30:68 - Unknown word (Instelling)
log ./samples/Dutch.txt:32:4 - Unknown word (Meedoen)
log ./samples/Dutch.txt:32:13 - Unknown word (Iedereen)
log ./samples/Dutch.txt:32:25 - Unknown word (welkom)
log ./samples/Dutch.txt:32:42 - Unknown word (doen)
log ./samples/Dutch.txt:32:53 - Unknown word (fouten)
log ./samples/Dutch.txt:32:61 - Unknown word (discussieer)
log ./samples/Dutch.txt:33:7 - Unknown word (mailinglijst)
log ./samples/Dutch.txt:33:23 - Unknown word (draai)
log ./samples/Dutch.txt:33:52 - Unknown word (dragen)
log ./samples/Dutch.txt:33:75 - Unknown word (stemt)
log ./samples/Dutch.txt:34:6 - Unknown word (ermee)
log ./samples/Dutch.txt:34:22 - Unknown word (bijdrage)
log ./samples/Dutch.txt:34:39 - Unknown word (desbetreffende)
log ./samples/Dutch.txt:34:54 - Unknown word (taalhulpbestand)
log ./samples/Dutch.txt:34:70 - Unknown word (beschikbaar)
log ./samples/Dutch.txt:35:4 - Unknown word (komt)
log ./samples/Dutch.txt:35:9 - Unknown word (onder)
log ./samples/Dutch.txt:35:15 - Unknown word (vrije)
log ./samples/Dutch.txt:35:27 - Unknown word (opensource)
log ./samples/Dutch.txt:35:38 - Unknown word (licenties)
log ./samples/Dutch.txt:35:49 - Unknown word (Indien)
log ./samples/Dutch.txt:35:62 - Unknown word (wenst)
log ./samples/Dutch.txt:36:4 - Unknown word (naam)
log ./samples/Dutch.txt:36:23 - Unknown word (genoemd)
log ./samples/Dutch.txt:36:31 - Unknown word (worden)
log ./samples/Dutch.txt:36:42 - Unknown word (ontvangen)
log ./samples/Dutch.txt:36:55 - Unknown word (schriftelijk)
log ./samples/Dutch.txt:36:68 - Unknown word (verzoek)
log ./samples/Dutch.txt:37:4 - Unknown word (daarvoor)
log ./samples/Dutch.txt:37:13 - Unknown word (graag)
log ./samples/Dutch.txt:38:4 - Unknown word (Rechten)
log ./samples/Dutch.txt:38:16 - Unknown word (derden)
log ./samples/Dutch.txt:38:33 - Unknown word (respecteert)
log ./samples/Dutch.txt:38:48 - Unknown word (rechten)
log ./samples/Dutch.txt:38:60 - Unknown word (derden)
log ./samples/Dutch.txt:39:13 - Unknown word (gegevens)
log ./samples/Dutch.txt:39:22 - Unknown word (vrij)
log ./samples/Dutch.txt:39:27 - Unknown word (beschikbaar)
log ./samples/Dutch.txt:39:39 - Unknown word (houden)
log ./samples/Dutch.txt:39:47 - Unknown word (Voor)
log ./samples/Dutch.txt:39:52 - Unknown word (bijdragen)
log ./samples/Dutch.txt:40:6 - Unknown word (daarom)
log ./samples/Dutch.txt:40:13 - Unknown word (niet)
log ./samples/Dutch.txt:40:18 - Unknown word (zonder)
log ./samples/Dutch.txt:40:25 - Unknown word (toestemming)
log ./samples/Dutch.txt:40:37 - Unknown word (gebruikmaken)
log ./samples/Dutch.txt:40:54 - Unknown word (beschermde)
log ./samples/Dutch.txt:40:65 - Unknown word (naslagwerken)
log ./samples/Dutch.txt:41:4 - Unknown word (zoals)
log ./samples/Dutch.txt:41:10 - Unknown word (woordenboeken)
log ./samples/Dutch.txt:41:36 - Unknown word (toegestaan)
log ./samples/Dutch.txt:41:50 - Unknown word (gebruik)
log ./samples/Dutch.txt:41:61 - Unknown word (maken)
log ./samples/Dutch.txt:42:4 - Unknown word (materialen)
log ./samples/Dutch.txt:42:22 - Unknown word (Nederlandse)
log ./samples/Dutch.txt:42:34 - Unknown word (Taalunie)
log ./samples/Dutch.txt:42:44 - Unknown word (zoals)
log ./samples/Dutch.txt:42:53 - Unknown word (leidraad)
log ./samples/Dutch.txt:42:68 - Unknown word (woordenlijst)
log ./samples/Dutch.txt:43:4 - Unknown word (Indien)
log ./samples/Dutch.txt:43:17 - Unknown word (mening)
log ./samples/Dutch.txt:43:42 - Unknown word (inbreuk)
log ./samples/Dutch.txt:43:50 - Unknown word (maakt)
log ./samples/Dutch.txt:43:62 - Unknown word (rechten)
log ./samples/Dutch.txt:44:4 - Unknown word (verzoeken)
log ./samples/Dutch.txt:44:19 - Unknown word (hierover)
log ./samples/Dutch.txt:44:31 - Unknown word (spoedig)
log ./samples/Dutch.txt:44:39 - Unknown word (mogelijk)
log ./samples/Dutch.txt:44:48 - Unknown word (schriftelijk)
log ./samples/Dutch.txt:45:7 - Unknown word (nemen)
log ./samples/Dutch.txt:46:13 - Unknown word (Stichting)
log ./samples/Dutch.txt:59:56 - Unknown word (Brouwer)
log ./samples/Dutch.txt:60:11 - Unknown word (Nederlandstalige)
log ./samples/Dutch.txt:60:32 - Unknown word (Gebruikersgroep)
log ./samples/Dutch.txt:68:42 - Unknown word (unported)
log ./samples/Dutch.txt:74:39 - Unknown word (RABONL)
log ./samples/Dutch.txt:74:49 - Unknown word (IBAN)
log ./samples/Dutch.txt:74:59 - Unknown word (RABO)
log ./samples/Dutch.txt:75:4 - Unknown word (Stichting)
log ./samples/Dutch.txt:77:58 - Unknown word (algemeen)
log ./samples/Dutch.txt:77:71 - Unknown word (beogende)
log ./samples/Dutch.txt:78:4 - Unknown word (instelling)
log ./samples/Dutch.txt:78:18 - Unknown word (ANBI)
error CSpell: Files checked: 1, Issues found: 189 in 1 files"
`;
exports[`Validate cli app samples/Dutch.txt Expect Error: [Function CheckFailed] 3`] = `
"
1/1 [90m./samples/Dutch.txt[39m"
`;
exports[`Validate cli app success suggest run with ["suggest", "café", "--num-suggestions=1", "--no-include-ties"] 1`] = `Array []`;
exports[`Validate cli app success suggest run with ["suggest", "café", "--num-suggestions=1", "--no-include-ties"] 2`] = `
"café:
- café"
`;
exports[`Validate cli app success trace café run with ["trace", "café"] 1`] = `Array []`;
exports[`Validate cli app success trace café run with ["trace", "café"] 2`] = `
"Word F Dictionary Dictionary Location
café - [flagWords]* From Settings \`flagWords\`
café - [ignoreWords]* From Settings \`ignoreWords\`
café - [words]* From Settings \`words\`
café - ada ../cspell-bundled-dicts/...spell/dict-ada/ada.txt.gz
café - aws* ../cspell-bundled-dicts/...spell/dict-aws/aws.txt.gz
café - backwards-compatibi* ../cspell-bundled-dicts/compatibility-words.txt.gz
café - bash ../cspell-bundled-dicts/...ct-bash/bash-words.txt.gz
café - companies* ../cspell-bundled-dicts/...ompanies/companies.txt.gz
café - cpp ../cspell-bundled-dicts/...spell/dict-cpp/cpp.txt.gz
café - cryptocurrencies* ../cspell-bundled-dicts/...s/cryptocurrencies.txt.gz
café - csharp ../cspell-bundled-dicts/...dict-csharp/csharp.txt.gz
café - css ../cspell-bundled-dicts/...spell/dict-css/css.txt.gz
café - dart ../cspell-bundled-dicts/...ell/dict-dart/dart.txt.gz
café - django ../cspell-bundled-dicts/...dict-django/django.txt.gz
café - dotnet ../cspell-bundled-dicts/...dict-dotnet/dotnet.txt.gz
café - elixir ../cspell-bundled-dicts/...dict-elixir/elixir.txt.gz
café * en_us* ../cspell-bundled-dicts/.../dict-en_us/en_US.trie.gz
café * en-gb ../cspell-bundled-dicts/.../dict-en-gb/en_GB.trie.gz
café - filetypes* ../cspell-bundled-dicts/...iletypes/filetypes.txt.gz
café - fonts ../cspell-bundled-dicts/...l/dict-fonts/fonts.txt.gz
café - fullstack ../cspell-bundled-dicts/...ullstack/fullstack.txt.gz
café - golang ../cspell-bundled-dicts/...ell/dict-golang/go.txt.gz
café - haskell ../cspell-bundled-dicts/...ct-haskell/haskell.txt.gz
café - html ../cspell-bundled-dicts/...ell/dict-html/html.txt.gz
café - html-symbol-entitie ../cspell-bundled-dicts/...-entities/entities.txt.gz
café - java ../cspell-bundled-dicts/...ell/dict-java/java.txt.gz
café - latex ../cspell-bundled-dicts/...l/dict-latex/latex.txt.gz
café - lorem-ipsum ../cspell-bundled-dicts/...m-ipsum/dictionary.txt.gz
café - lua ../cspell-bundled-dicts/...spell/dict-lua/lua.txt.gz
café - networking-terms ../cspell-bundled-dicts/...ms/networkingTerms.txt.gz
café - node ../cspell-bundled-dicts/...ell/dict-node/node.txt.gz
café - npm ../cspell-bundled-dicts/...spell/dict-npm/npm.txt.gz
café - php ../cspell-bundled-dicts/...spell/dict-php/php.txt.gz
café - powershell ../cspell-bundled-dicts/...ershell/powershell.txt.gz
café - public-licenses* ../cspell-bundled-dicts/...es/public-licenses.txt.gz
café - python ../cspell-bundled-dicts/...dict-python/python.txt.gz
café - r ../cspell-bundled-dicts/...s/@cspell/dict-r/r.txt.gz
café - ruby ../cspell-bundled-dicts/...ell/dict-ruby/ruby.txt.gz
café - rust ../cspell-bundled-dicts/...ell/dict-rust/rust.txt.gz
café - scala ../cspell-bundled-dicts/...l/dict-scala/scala.txt.gz
café - softwareTerms* ../cspell-bundled-dicts/...erms/softwareTerms.txt.gz
café - swift ../cspell-bundled-dicts/...l/dict-swift/swift.txt.gz
café - typescript ../cspell-bundled-dicts/...escript/typescript.txt.gz
café - workspace* ../../cspell-dict.txt"
`;
exports[`Validate cli app success trace hello run with ["trace", "--locale=en-gb", "hello"] 1`] = `Array []`;
exports[`Validate cli app success trace hello run with ["trace", "--locale=en-gb", "hello"] 2`] = `
"Word F Dictionary Dictionary Location
hello - [flagWords]* From Settings \`flagWords\`
hello - [ignoreWords]* From Settings \`ignoreWords\`
hello - [words]* From Settings \`words\`
hello - ada ../cspell-bundled-dicts/...pell/dict-ada/ada.txt.gz
hello - aws* ../cspell-bundled-dicts/...pell/dict-aws/aws.txt.gz
hello - backwards-compatibi* ../cspell-bundled-dicts/compatibility-words.txt.gz
hello - bash ../cspell-bundled-dicts/...t-bash/bash-words.txt.gz
hello - companies* ../cspell-bundled-dicts/...mpanies/companies.txt.gz
hello * cpp ../cspell-bundled-dicts/...pell/dict-cpp/cpp.txt.gz
hello - cryptocurrencies* ../cspell-bundled-dicts/.../cryptocurrencies.txt.gz
hello - csharp ../cspell-bundled-dicts/...ict-csharp/csharp.txt.gz
hello - css ../cspell-bundled-dicts/...pell/dict-css/css.txt.gz
hello - dart ../cspell-bundled-dicts/...ll/dict-dart/dart.txt.gz
hello - django ../cspell-bundled-dicts/...ict-django/django.txt.gz
hello - dotnet ../cspell-bundled-dicts/...ict-dotnet/dotnet.txt.gz
hello - elixir ../cspell-bundled-dicts/...ict-elixir/elixir.txt.gz
hello * en_us ../cspell-bundled-dicts/...dict-en_us/en_US.trie.gz
hello * en-gb* ../cspell-bundled-dicts/...dict-en-gb/en_GB.trie.gz
hello - filetypes* ../cspell-bundled-dicts/...letypes/filetypes.txt.gz
hello - fonts ../cspell-bundled-dicts/.../dict-fonts/fonts.txt.gz
hello - fullstack ../cspell-bundled-dicts/...llstack/fullstack.txt.gz
hello * golang ../cspell-bundled-dicts/...ll/dict-golang/go.txt.gz
hello - haskell ../cspell-bundled-dicts/...t-haskell/haskell.txt.gz
hello - html ../cspell-bundled-dicts/...ll/dict-html/html.txt.gz
hello - html-symbol-entitie ../cspell-bundled-dicts/...entities/entities.txt.gz
hello - java ../cspell-bundled-dicts/...ll/dict-java/java.txt.gz
hello - latex ../cspell-bundled-dicts/.../dict-latex/latex.txt.gz
hello - lorem-ipsum ../cspell-bundled-dicts/...-ipsum/dictionary.txt.gz
hello - lua ../cspell-bundled-dicts/...pell/dict-lua/lua.txt.gz
hello - networking-terms ../cspell-bundled-dicts/...s/networkingTerms.txt.gz
hello * node ../cspell-bundled-dicts/...ll/dict-node/node.txt.gz
hello - npm ../cspell-bundled-dicts/...pell/dict-npm/npm.txt.gz
hello - php ../cspell-bundled-dicts/...pell/dict-php/php.txt.gz
hello - powershell ../cspell-bundled-dicts/...rshell/powershell.txt.gz
hello - public-licenses* ../cspell-bundled-dicts/...s/public-licenses.txt.gz
hello - python ../cspell-bundled-dicts/...ict-python/python.txt.gz
hello - r ../cspell-bundled-dicts/.../@cspell/dict-r/r.txt.gz
hello - ruby ../cspell-bundled-dicts/...ll/dict-ruby/ruby.txt.gz
hello - rust ../cspell-bundled-dicts/...ll/dict-rust/rust.txt.gz
hello - scala ../cspell-bundled-dicts/.../dict-scala/scala.txt.gz
hello - softwareTerms* ../cspell-bundled-dicts/...rms/softwareTerms.txt.gz
hello - swift ../cspell-bundled-dicts/.../dict-swift/swift.txt.gz
hello - typescript ../cspell-bundled-dicts/...script/typescript.txt.gz
hello - workspace* ../../cspell-dict.txt"
`;
exports[`Validate cli app success trace hello run with ["trace", "hello"] 1`] = `Array []`;
exports[`Validate cli app success trace hello run with ["trace", "hello"] 2`] = `
"Word F Dictionary Dictionary Location
hello - [flagWords]* From Settings \`flagWords\`
hello - [ignoreWords]* From Settings \`ignoreWords\`
hello - [words]* From Settings \`words\`
hello - ada ../cspell-bundled-dicts/...pell/dict-ada/ada.txt.gz
hello - aws* ../cspell-bundled-dicts/...pell/dict-aws/aws.txt.gz
hello - backwards-compatibi* ../cspell-bundled-dicts/compatibility-words.txt.gz
hello - bash ../cspell-bundled-dicts/...t-bash/bash-words.txt.gz
hello - companies* ../cspell-bundled-dicts/...mpanies/companies.txt.gz
hello * cpp ../cspell-bundled-dicts/...pell/dict-cpp/cpp.txt.gz
hello - cryptocurrencies* ../cspell-bundled-dicts/.../cryptocurrencies.txt.gz
hello - csharp ../cspell-bundled-dicts/...ict-csharp/csharp.txt.gz
hello - css ../cspell-bundled-dicts/...pell/dict-css/css.txt.gz
hello - dart ../cspell-bundled-dicts/...ll/dict-dart/dart.txt.gz
hello - django ../cspell-bundled-dicts/...ict-django/django.txt.gz
hello - dotnet ../cspell-bundled-dicts/...ict-dotnet/dotnet.txt.gz
hello - elixir ../cspell-bundled-dicts/...ict-elixir/elixir.txt.gz
hello * en_us* ../cspell-bundled-dicts/...dict-en_us/en_US.trie.gz
hello * en-gb ../cspell-bundled-dicts/...dict-en-gb/en_GB.trie.gz
hello - filetypes* ../cspell-bundled-dicts/...letypes/filetypes.txt.gz
hello - fonts ../cspell-bundled-dicts/.../dict-fonts/fonts.txt.gz
hello - fullstack ../cspell-bundled-dicts/...llstack/fullstack.txt.gz
hello * golang ../cspell-bundled-dicts/...ll/dict-golang/go.txt.gz
hello - haskell ../cspell-bundled-dicts/...t-haskell/haskell.txt.gz
hello - html ../cspell-bundled-dicts/...ll/dict-html/html.txt.gz
hello - html-symbol-entitie ../cspell-bundled-dicts/...entities/entities.txt.gz
hello - java ../cspell-bundled-dicts/...ll/dict-java/java.txt.gz
hello - latex ../cspell-bundled-dicts/.../dict-latex/latex.txt.gz
hello - lorem-ipsum ../cspell-bundled-dicts/...-ipsum/dictionary.txt.gz
hello - lua ../cspell-bundled-dicts/...pell/dict-lua/lua.txt.gz
hello - networking-terms ../cspell-bundled-dicts/...s/networkingTerms.txt.gz
hello * node ../cspell-bundled-dicts/...ll/dict-node/node.txt.gz
hello - npm ../cspell-bundled-dicts/...pell/dict-npm/npm.txt.gz
hello - php ../cspell-bundled-dicts/...pell/dict-php/php.txt.gz
hello - powershell ../cspell-bundled-dicts/...rshell/powershell.txt.gz
hello - public-licenses* ../cspell-bundled-dicts/...s/public-licenses.txt.gz
hello - python ../cspell-bundled-dicts/...ict-python/python.txt.gz
hello - r ../cspell-bundled-dicts/.../@cspell/dict-r/r.txt.gz
hello - ruby ../cspell-bundled-dicts/...ll/dict-ruby/ruby.txt.gz
hello - rust ../cspell-bundled-dicts/...ll/dict-rust/rust.txt.gz
hello - scala ../cspell-bundled-dicts/.../dict-scala/scala.txt.gz
hello - softwareTerms* ../cspell-bundled-dicts/...rms/softwareTerms.txt.gz
hello - swift ../cspell-bundled-dicts/.../dict-swift/swift.txt.gz
hello - typescript ../cspell-bundled-dicts/...script/typescript.txt.gz
hello - workspace* ../../cspell-dict.txt"
`;
exports[`Validate cli app suggest ["sug", "--stdin", "-d=en_us", "-v"] 1`] = `Array []`;
exports[`Validate cli app suggest ["sug", "--stdin", "-d=en_us", "-v"] 2`] = `
"mexico:
- Mexico - 1 en_us
- medico - 97 en_us
- Mexico's - 186 en_us
- Mexican - 188 en_us
- medicos - 190 en_us
- medick - 191 en_us
- medics - 191 en_us
- metics - 191 en_us"
`;
exports[`Validate cli app suggest ["sug", "--stdin", "-d=en_us", "-v"] 3`] = `""`;
exports[`Validate cli app suggest ["sug", "dutch", "--dictionaries=en_us", "--dictionary=en-gb", "-v", "--num-suggestions=2"] 1`] = `Array []`;
exports[`Validate cli app suggest ["sug", "dutch", "--dictionaries=en_us", "--dictionary=en-gb", "-v", "--num-suggestions=2"] 2`] = `
"dutch:
- dutch - 0 en-gb, en_us
- Dutch - 1 en_us"
`;
exports[`Validate cli app suggest ["sug", "dutch", "--dictionaries=en_us", "--dictionary=en-gb", "-v", "--num-suggestions=2"] 3`] = `""`;
exports[`Validate cli app suggest ["sug", "dutch", "--dictionaries=en_us", "-v", "--num-suggestions=2"] 1`] = `Array []`;
exports[`Validate cli app suggest ["sug", "dutch", "--dictionaries=en_us", "-v", "--num-suggestions=2"] 2`] = `
"dutch:
- dutch - 0 en_us
- Dutch - 1 en_us"
`;
exports[`Validate cli app suggest ["sug", "dutch", "--dictionaries=en_us", "-v", "--num-suggestions=2"] 3`] = `""`;
exports[`Validate cli app suggest ["sug", "dutch", "--dictionaries=en_us", "-v", "--num-suggestions=2"] 4`] = `Array []`;
exports[`Validate cli app suggest ["sug", "dutch", "--dictionaries=en_us", "-v", "--num-suggestions=2"] 5`] = `
"dutch:
- dutch - 0 en_us
- Dutch - 1 en_us"
`;
exports[`Validate cli app suggest ["sug", "dutch", "--dictionaries=en_us", "-v", "--num-suggestions=2"] 6`] = `""`;
exports[`Validate cli app suggest ["sug", "dutch", "-d=en_us", "-d=en-gb", "-v", "--num-suggestions=2"] 1`] = `Array []`;
exports[`Validate cli app suggest ["sug", "dutch", "-d=en_us", "-d=en-gb", "-v", "--num-suggestions=2"] 2`] = `
"dutch:
- dutch - 0 en-gb, en_us
- Dutch - 1 en_us"
`;
exports[`Validate cli app suggest ["sug", "dutch", "-d=en_us", "-d=en-gb", "-v", "--num-suggestions=2"] 3`] = `""`;
exports[`Validate cli app suggest ["sug", "mexico", "-d=en_us", "-v", "--num-suggestions=0"] 1`] = `Array []`;
exports[`Validate cli app suggest ["sug", "mexico", "-d=en_us", "-v", "--num-suggestions=0"] 2`] = `
"mexico:
<no suggestions>"
`;
exports[`Validate cli app suggest ["sug", "mexico", "-d=en_us", "-v", "--num-suggestions=0"] 3`] = `""`;
exports[`Validate cli app suggest ["sug", "mexico", "-d=en_us", "-v"] 1`] = `Array []`;
exports[`Validate cli app suggest ["sug", "mexico", "-d=en_us", "-v"] 2`] = `
"mexico:
- Mexico - 1 en_us
- medico - 97 en_us
- Mexico's - 186 en_us
- Mexican - 188 en_us
- medicos - 190 en_us
- medick - 191 en_us
- medics - 191 en_us
- metics - 191 en_us"
`;
exports[`Validate cli app suggest ["sug", "mexico", "-d=en_us", "-v"] 3`] = `""`;
exports[`Validate cli app suggest ["sug", "mexico", "-d=en_us"] 1`] = `Array []`;
exports[`Validate cli app suggest ["sug", "mexico", "-d=en_us"] 2`] = `
"mexico:
- Mexico
- medico
- Mexico's
- Mexican
- medicos
- medick
- medics
- metics"
`;
exports[`Validate cli app suggest ["sug", "mexico", "-d=en_us"] 3`] = `""`;
exports[`Validate cli app suggest ["sug", "mexico", "-d=en-gb"] 1`] = `Array []`;
exports[`Validate cli app suggest ["sug", "mexico", "-d=en-gb"] 2`] = `
"mexico:
- mexico
- medico
- mexico's
- mexican
- medicos
- medich
- medici
- medics
- melick"
`;
exports[`Validate cli app suggest ["sug", "mexico", "-d=en-gb"] 3`] = `""`;
exports[`Validate cli app suggest ["sug", "mexico", "-d=en-us"] 1`] = `Array []`;
exports[`Validate cli app suggest ["sug", "mexico", "-d=en-us"] 2`] = `""`;
exports[`Validate cli app suggest ["sug", "mexico", "-d=en-us"] 3`] = `"Unknown dictionary: \\"en-us\\""`;
exports[`Validate cli app suggest ["sug"] 1`] = `
Array [
"Usage: cspell suggestions|sug [options] [words...]",
"",
"Spelling Suggestions for words.",
"",
"Options:",
" -c, --config <cspell.json> Configuration file to use. By default",
" cspell looks for cspell.json in the",
" current directory.",
" --locale <locale> Set language locales. i.e. \\"en,fr\\" for",
" English and French, or \\"en-GB\\" for",
" British English.",
" --language-id <language> Use programming language. i.e. \\"php\\" or",
" \\"scala\\".",
" -s, --no-strict Ignore case and accents when searching",
" for words.",
" --ignore-case Alias of --no-strict.",
" --num-changes <number> Number of changes allowed to a word",
" (default: 4)",
" --num-suggestions <number> Number of suggestions (default: 8)",
" --no-include-ties Force the number of suggested to be",
" limited, by not including suggestions",
" that have the same edit cost.",
" --stdin Use stdin for input.",
" -v, --verbose Show detailed output.",
" -d, --dictionary <dictionary name> Use the dictionary specified. Only",
" dictionaries specified will be used.",
" --dictionaries <dictionary names...> Use the dictionaries specified. Only",
" dictionaries specified will be used.",
" --no-color Turn off color.",
" --color Force color",
" -h, --help display help for command",
"",
]
`;
exports[`Validate cli app suggest ["sug"] 2`] = `""`;
exports[`Validate cli app suggest ["sug"] 3`] = `""`;
exports[`Validate cli app trace café Expect Error: undefined 1`] = `Array []`;
exports[`Validate cli app trace café Expect Error: undefined 2`] = `
"Word F Dictionary Dictionary Location
café - [flagWords]* From Settings \`flagWords\`
café - [ignoreWords]* From Settings \`ignoreWords\`
café - [words]* From Settings \`words\`
café - ada ../cspell-bundled-dicts/...spell/dict-ada/ada.txt.gz
café - aws* ../cspell-bundled-dicts/...spell/dict-aws/aws.txt.gz
café - backwards-compatibi* ../cspell-bundled-dicts/compatibility-words.txt.gz
café - bash ../cspell-bundled-dicts/...ct-bash/bash-words.txt.gz
café - companies* ../cspell-bundled-dicts/...ompanies/companies.txt.gz