From 00b6f88f306b2977fd310c6c26fff701f195d128 Mon Sep 17 00:00:00 2001 From: Erik Kemperman Date: Sun, 7 May 2017 21:23:54 +0200 Subject: [PATCH] Update: Make constant match file contents (newline) --- test/file-operations.js | 4 ++-- test/utils/test-constants.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/file-operations.js b/test/file-operations.js index e448b802..41af25f8 100644 --- a/test/file-operations.js +++ b/test/file-operations.js @@ -1473,8 +1473,8 @@ describe('createWriteStream', function() { }); it('accepts flag option', function(done) { - // Write 12 stars then 12345 because the length of expected is 12 - fs.writeFileSync(outputPath, '************12345'); + // Write 13 stars then 12345 because the length of expected is 13 + fs.writeFileSync(outputPath, '*************12345'); function assert(err) { var outputContents = fs.readFileSync(outputPath, 'utf8'); diff --git a/test/utils/test-constants.js b/test/utils/test-constants.js index 004ad5be..9db08a3f 100644 --- a/test/utils/test-constants.js +++ b/test/utils/test-constants.js @@ -38,8 +38,8 @@ var symlinkMultiDirpathSecond = path.join(outputBase, './test-multi-layer-symlin var symlinkNestedFirst = path.join(outputBase, './test-multi-layer-symlink'); var symlinkNestedSecond = path.join(outputBase, './foo/baz-link.txt'); // Used for contents of files -var contents = 'Hello World!'; -var sourcemapContents = '//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9maXh0dXJlcyIsIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzIjpbIi4vZml4dHVyZXMiXSwic291cmNlc0NvbnRlbnQiOlsiSGVsbG8gV29ybGQhIl19'; +var contents = 'Hello World!\n'; +var sourcemapContents = '//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9maXh0dXJlcyIsIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzIjpbIi4vZml4dHVyZXMiXSwic291cmNlc0NvbnRlbnQiOlsiSGVsbG8gV29ybGQhXG4iXX0='; module.exports = { inputRelative: inputRelative,