MithrilJS / ospec

Noiseless testing framework
MIT License
48 stars 13 forks source link

Assertion descriptions don't interpolate when used with tagged template literal syntax #43

Closed pygy closed 2 years ago

pygy commented 2 years ago

As seen here

  o(true).equals(false)(`Some ${"interpolated"} text`)

works, but

  o(true).equals(false)`Some ${"interpolated"} text`

doesn't.

We advertise the tagged template syntax in the docs (without interpolations, but still, this is tempting).