Skip to content

Commit b98709a

Browse files
committed
.replace(/\\n|\\r/gm)
1 parent 6fc9338 commit b98709a

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

tests/00-module/002-dc-up.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ describe('docker-compose up tests', function () {
1414

1515
var expected = fs.readFileSync('./tests/00-module/expected/dc-up.expected.txt', 'utf-8');
1616
module.dockerComposeUp(file).then(out => {
17-
expect(out.replace(/^\s+|\s+$/gm, '')).to.equal(expected.replace(/^\s+|\s+$/gm, ''));
17+
expect(out.replace(/\\n|\\r/gm, '')).to.equal(expected.replace(/\\n|\\r/gm, ''));
1818
done();
1919
}, done);
2020

tests/00-module/003-dc-stop.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ describe('docker-compose stop tests', function () {
1414

1515
var expected = fs.readFileSync('./tests/00-module/expected/dc-stop.expected.txt', 'utf-8');
1616
module.dockerComposeStop(file).then(out => {
17-
expect(out.replace(/^\s+|\s+$/gm, '')).to.equal(expected.replace(/^\s+|\s+$/gm, ''));
17+
expect(out.replace(/\\n|\\r/gm, '')).to.equal(expected.replace(/\\n|\\r/gm, ''));
1818
done();
1919
}, done);
2020

tests/00-module/004-dc-start.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ describe('docker-compose start tests', function () {
1414

1515
var expected = fs.readFileSync('./tests/00-module/expected/dc-start.expected.txt', 'utf-8');
1616
module.dockerComposeStart(file).then(out => {
17-
expect(out.replace(/^\s+|\s+$/gm, '')).to.equal(expected.replace(/^\s+|\s+$/gm, ''));
17+
expect(out.replace(/\\n|\\r/gm, '')).to.equal(expected.replace(/\\n|\\r/gm, ''));
1818
done();
1919
}, done);
2020

tests/00-module/005-dc-down.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ describe('docker-compose down tests', function () {
1414

1515
var expected = fs.readFileSync('./tests/00-module/expected/dc-down.expected.txt', 'utf-8');
1616
module.dockerComposeDown(file).then(out => {
17-
expect(out.replace(/^\s+|\s+$/gm, '')).to.equal(expected.replace(/^\s+|\s+$/gm, ''));
17+
expect(out.replace(/\\n|\\r/gm, '')).to.equal(expected.replace(/\\n|\\r/gm, ''));
1818
done();
1919
}, done);
2020

0 commit comments

Comments
 (0)