From c74b48e28fee96b9b3bf3ba687538acb3b966afe Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Wed, 28 Jun 2017 12:49:45 -0700 Subject: [PATCH] Fix the build break because of incorrect usage of writeFileSync --- appveyor.yml | 2 ++ build/build.ts | 2 +- tests/test.ts | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index e42a93c..a8c725f 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -10,8 +10,10 @@ install: - npm --version - cd build - npm install + - npm list - cd ../tests - npm install + - npm list - npm test # Don't actually build. diff --git a/build/build.ts b/build/build.ts index d3ff4d3..78b8c14 100644 --- a/build/build.ts +++ b/build/build.ts @@ -5,7 +5,7 @@ import plist = require('plist'); function writePlistFile(grammar: any, fileName: string) { const text = plist.build(grammar); - fs.writeFileSync(fileName, text, "utf8"); + fs.writeFileSync(fileName, text); } function readYaml(fileName: string) { diff --git a/tests/test.ts b/tests/test.ts index 384ee87..41cdefb 100644 --- a/tests/test.ts +++ b/tests/test.ts @@ -34,7 +34,7 @@ for (const fileName of fs.readdirSync('cases')) { function addTestCase(file: string, generatedText: string) { const generatedFileName = path.join(generatedFolder, file); - fs.writeFileSync(generatedFileName, generatedText, "utf8"); + fs.writeFileSync(generatedFileName, generatedText); it('Comparing generated' + file, () => { const baselineFile = path.join(baselineFolder, file);