UNPKG

kloak

Version:
15 lines (9 loc) 564 B
const assert = require( "assert" ); const transpher = require( "./transpher.js" ); assert.deepEqual( transpher( { "name": "simple" }, { "type": "ok" } ), { "type": "ok", "name": "simple" }, "should be equal to { 'type': 'ok', 'name': 'simple' }" ); assert.deepEqual( transpher( { "hello": "world" }, { "hello": "yeah" } ), { "hello": "world" }, "should be equal to { 'hello': 'world' }" ); assert.deepEqual( transpher( { "hello": "world" }, { "hello": "yeah" }, true ), { "hello": "yeah" }, "should be equal to { 'hello': 'yeah' }" ); console.log( "ok" );