Remove extension for emitting output should remove any of supported extensions + js/jsx to get the dts file

This commit is contained in:
Sheetal Nandi committed 2015-10-08 14:26:40 -07:00
1 parent 242eb8bc5c
commit f7b72047f0
7 files changed
+20 -12

No files matched your search

+1 -1
View File
@@ -64,7 +64,7 @@ module ts {
let transpileModuleResultWithSourceMap = transpileModule(input, transpileOptions);
assert.isTrue(transpileModuleResultWithSourceMap.sourceMapText !== undefined);
let expectedSourceMapFileName = removeFileExtension(getBaseFileName(normalizeSlashes(transpileOptions.fileName))) + ".js.map";
let expectedSourceMapFileName = removeFileExtension(getBaseFileName(normalizeSlashes(transpileOptions.fileName)), ts.getExtensionsToRemoveForEmitPath(transpileOptions.compilerOptions)) + ".js.map";
let expectedSourceMappingUrlLine = `//# sourceMappingURL=${expectedSourceMapFileName}`;
if (testSettings.expectedOutput !== undefined) {