Skip to content

Commit

Permalink
auth.js: Replace string concatenations with template literals (haraka…
Browse files Browse the repository at this point in the history
  • Loading branch information
hontas authored and msimerson committed Oct 24, 2017
1 parent 9f33e85 commit 2637fd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/smtp_client/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ exports.get_client(server, function (err, smtp_client) {
test.ok(false);
return;
}
test.equals(data.shift() + '\r\n', line);
test.equals(`${data.shift()}\r\n`, line);
if (reading_body && line == '.\r\n') {
reading_body = false;
}
Expand All @@ -103,7 +103,7 @@ exports.get_client(server, function (err, smtp_client) {
}
while (true) {
const line2 = data.shift();
this.emit('line', line2 + '\r\n');
this.emit('line', `${line2}\r\n`);
if (line2[3] == ' ') break;
}
}
Expand Down

0 comments on commit 2637fd4

Please sign in to comment.