File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -14,10 +14,15 @@ describe("Compare generated with baselines", () => {
14
14
for ( var file of fs . readdirSync ( 'generated' ) ) {
15
15
var generatedText = fs . readFileSync ( 'generated/' + file , 'utf8' ) ;
16
16
var baselinesText = fs . readFileSync ( 'baselines/' + file , 'utf8' ) ;
17
- describe ( 'Comparing ' + file , ( ) => {
18
- it ( 'should be the same' , ( ) => {
19
- chai . expect ( compareText ( generatedText , baselinesText ) ) . to . true ;
20
- } )
21
- } )
17
+
18
+ addTestCase ( file , generatedText , baselinesText ) ;
22
19
}
23
- } )
20
+ } )
21
+
22
+ function addTestCase ( file : string , generatedText : string , baselinesText : string ) {
23
+ describe ( 'Comparing ' + file , ( ) => {
24
+ it ( 'should be the same' , ( ) => {
25
+ chai . expect ( compareText ( generatedText , baselinesText ) ) . to . true ;
26
+ } )
27
+ } )
28
+ }
You can’t perform that action at this time.
0 commit comments