diff --git a/tests/basic-test.js b/tests/basic-test.js index b22a9e7..4924be1 100644 --- a/tests/basic-test.js +++ b/tests/basic-test.js @@ -43,14 +43,12 @@ aE(s, 'yellow', 33); assert.equal(s, 'string'); -var testStringWithNewLines = s + ` -` + s; +var testStringWithNewLines = s + '\n' + s; // single style assert.equal(testStringWithNewLines.red, '\x1b[31m' + s + '\n' + s + '\x1b[39m'); -var testStringWithNewLinesStyled = s.underline + ` -` + s.bold; +var testStringWithNewLinesStyled = s.underline + '\n' + s.bold; // nested styles assert.equal(testStringWithNewLinesStyled.red, '\x1b[31m' + '\x1b[4m' + s + '\x1b[24m' + '\n' + '\x1b[1m' + s + '\x1b[22m' + '\x1b[39m'); diff --git a/tests/safe-test.js b/tests/safe-test.js index 7d13129..1d8a5aa 100644 --- a/tests/safe-test.js +++ b/tests/safe-test.js @@ -40,14 +40,12 @@ aE(s, 'yellow', 33); assert.equal(s, 'string'); -var testStringWithNewLines = s + ` -` + s; +var testStringWithNewLines = s + '\n' + s; // single style assert.equal(colors.red(testStringWithNewLines), '\x1b[31m' + s + '\x1b[39m' + '\n' + '\x1b[31m' + s + '\x1b[39m'); -var testStringWithNewLinesStyled = colors.underline(s) + ` -` + colors.bold(s); +var testStringWithNewLinesStyled = colors.underline(s) + '\n' + colors.bold(s); // nested styles assert.equal(colors.red(testStringWithNewLinesStyled), '\x1b[31m' + '\x1b[4m' + s + '\x1b[24m' + '\x1b[39m' + '\n' + '\x1b[31m' + '\x1b[1m' + s + '\x1b[22m' + '\x1b[39m');