Skip to content

Commit

Permalink
Update: Make constant match file contents (newline)
Browse files Browse the repository at this point in the history
  • Loading branch information
erikkemperman authored and phated committed Nov 30, 2017
1 parent e060d2e commit 00b6f88
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/file-operations.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
4 changes: 2 additions & 2 deletions test/utils/test-constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 00b6f88

Please sign in to comment.