UNPKG

strility

Version:

Strility is a string manipulation library

8 lines (5 loc) 231 B
const { strictEqual } = require('assert'); const { surround } = require('../.'); describe('#surround', () => { it('should surround a string with given sub string', () => strictEqual(surround('dog', '***'), '***dog***')); });