UNPKG

@cdxoo/inline-string

Version:

turn multi line es6 template literal into a single line

22 lines (17 loc) 390 B
'use strict'; var expect = require('chai').expect, inline = require('./index'); describe('inline-string', () => { it('does the thing', () => { var baz = ` a .b `; var str = inline` foo .bar.${baz} .2B.9S `; expect(str).to.eql('foo.bar.a.b.2B.9S'); }) })