Skip to content

Commit d3193bc

Browse files
author
--global
committed
add ts tests
1 parent e8fa12f commit d3193bc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/test_helper.js

+3
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ describe('helper', function() {
136136
assert.equal(h.langToExt('scala'), '.scala');
137137
assert.equal(h.langToExt('swift'), '.swift');
138138
assert.equal(h.langToExt('rust'), '.rs');
139+
assert.equal(h.langToExt('typescript'), '.ts');
139140
});
140141
}); // #langToExt
141142

@@ -158,6 +159,7 @@ describe('helper', function() {
158159
assert.equal(h.extToLang('~/leetcode/../file.sql'), 'mysql');
159160
assert.equal(h.extToLang('/home/skygragon/file.dat'), 'unknown');
160161
assert.equal(h.extToLang('~/leetcode/file.rs'), 'rust');
162+
assert.equal(h.extToLang('~/leetcode/file.ts'), 'typescript');
161163
});
162164
}); // #extToLang
163165

@@ -182,6 +184,7 @@ describe('helper', function() {
182184
assert.deepEqual(h.langToCommentStyle('ruby'), RUBY_STYLE);
183185
assert.deepEqual(h.langToCommentStyle('scala'), C_STYLE);
184186
assert.deepEqual(h.langToCommentStyle('swift'), C_STYLE);
187+
assert.deepEqual(h.langToCommentStyle('typescript'), C_STYLE);
185188
});
186189
}); // #langToCommentStyle
187190

0 commit comments

Comments
 (0)