UNPKG

@technobuddha/library

Version:
16 lines (13 loc) 455 B
import { singleLine } from './single-line.ts'; describe('singleLine', () => { test('should strip newlines', () => { expect(singleLine`abc def ghi`).toBe('abc def ghi'); }); test('should leave expressions alone', () => { expect(singleLine`abc ${'x'} def ${'\n'} ghi`).toBe('abc x def \n ghi'); }); });