UNPKG

u200b

Version:

Append, prepend, and insert zero-width space to string.

22 lines (16 loc) 555 B
const assert = require( "assert" ); const komento = require( "./komento.js" ); assert.equal( komento( function procedure( ){ return "hello world"; } ), "hello world", "should be equal to 'hello world'" ); assert.equal( komento( function procedure( ){ /*! hello world yeah */ } ), "hello world yeah", "should be equal to 'hello world yeah'" ); assert.equal( komento( "hello {{ world }}", { "world": "yeah" } ), "hello yeah", "should be equal to 'hello yeah'"); assert.ok( komento( function( ){ return "hello world"; } ) ); console.log( "ok" );