File tree 1 file changed +3
-0
lines changed
1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -136,6 +136,7 @@ describe('helper', function() {
136
136
assert . equal ( h . langToExt ( 'scala' ) , '.scala' ) ;
137
137
assert . equal ( h . langToExt ( 'swift' ) , '.swift' ) ;
138
138
assert . equal ( h . langToExt ( 'rust' ) , '.rs' ) ;
139
+ assert . equal ( h . langToExt ( 'typescript' ) , '.ts' ) ;
139
140
} ) ;
140
141
} ) ; // #langToExt
141
142
@@ -158,6 +159,7 @@ describe('helper', function() {
158
159
assert . equal ( h . extToLang ( '~/leetcode/../file.sql' ) , 'mysql' ) ;
159
160
assert . equal ( h . extToLang ( '/home/skygragon/file.dat' ) , 'unknown' ) ;
160
161
assert . equal ( h . extToLang ( '~/leetcode/file.rs' ) , 'rust' ) ;
162
+ assert . equal ( h . extToLang ( '~/leetcode/file.ts' ) , 'typescript' ) ;
161
163
} ) ;
162
164
} ) ; // #extToLang
163
165
@@ -182,6 +184,7 @@ describe('helper', function() {
182
184
assert . deepEqual ( h . langToCommentStyle ( 'ruby' ) , RUBY_STYLE ) ;
183
185
assert . deepEqual ( h . langToCommentStyle ( 'scala' ) , C_STYLE ) ;
184
186
assert . deepEqual ( h . langToCommentStyle ( 'swift' ) , C_STYLE ) ;
187
+ assert . deepEqual ( h . langToCommentStyle ( 'typescript' ) , C_STYLE ) ;
185
188
} ) ;
186
189
} ) ; // #langToCommentStyle
187
190
You can’t perform that action at this time.
0 commit comments