chore(windows): fix the test.transpiler.unittest task
This commit is contained in:
parent
746efe7eba
commit
91d9e8d649
|
@ -101,9 +101,11 @@ describe('transpile to cjs', function() {
|
||||||
|
|
||||||
function compileAndWrite(input) {
|
function compileAndWrite(input) {
|
||||||
var transpiledCode = compiler.compile(options, "test.js", input).js;
|
var transpiledCode = compiler.compile(options, "test.js", input).js;
|
||||||
var tempFile = temp.openSync('ng2transpiler');
|
var tempPath = temp.path({prefix: "ng2transpiler", suffix: ''});
|
||||||
fs.writeSync(tempFile.fd, transpiledCode);
|
var fd = fs.openSync(tempPath, 'w+');
|
||||||
return tempFile.path;
|
fs.writeSync(fd, transpiledCode);
|
||||||
|
fs.closeSync(fd);
|
||||||
|
return tempPath.replace(/\\/g, '/');
|
||||||
}
|
}
|
||||||
|
|
||||||
it('should transpile export *', function() {
|
it('should transpile export *', function() {
|
||||||
|
|
Loading…
Reference in New Issue