safety-test demonstration

node v4.9.1
version: 3.0.0
endpointsharetweet
console.log("Test ready"); var SAFETY_CHECK = require('safety-switch@1.2.1');
process.env.SAFETY_SWITCH_IS_RELEASED="true"; console.log('Test should pass...'); SAFETY_CHECK(); console.log('...passed');
process.env.SAFETY_SWITCH_IS_RELEASED="anything but true"; console.log('Test should exit immediatly...'); SAFETY_CHECK(); console.log('Test FAILED'); // You should never see it
Loading…

no comments

    sign in to comment