We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 746efe7 commit 91d9e8dCopy full SHA for 91d9e8d
tools/transpiler/unittest/transpilertests.js
@@ -101,9 +101,11 @@ describe('transpile to cjs', function() {
101
102
function compileAndWrite(input) {
103
var transpiledCode = compiler.compile(options, "test.js", input).js;
104
- var tempFile = temp.openSync('ng2transpiler');
105
- fs.writeSync(tempFile.fd, transpiledCode);
106
- return tempFile.path;
+ var tempPath = temp.path({prefix: "ng2transpiler", suffix: ''});
+ var fd = fs.openSync(tempPath, 'w+');
+ fs.writeSync(fd, transpiledCode);
107
+ fs.closeSync(fd);
108
+ return tempPath.replace(/\\/g, '/');
109
}
110
111
it('should transpile export *', function() {
0 commit comments