0

for example - I expect to get some single line (or few lines) long text, and I want to test the text correctness.

let x = getLongTest();
let y = `firstName: ${firstName},... lastName: ${lastName}...';
x.should.equal(y);

now, y is really long, so I want to write it in multi-line for readability. should I use old string format "...",

or I have any option to use the new form of Template literals with "read-only" line breaks?

arielorvits
  • 4,735
  • 6
  • 33
  • 57

0 Answers0