'use strict';

var require2 = require('require_optional');
var chalk = require2('chalk');
if (chalk.styles) {
  console.log('ok');
}

'use strict';

var require2 = require('require_optional');
var chalk = require2('chalk');
if (typeof chalk === 'function') {
  console.log('ok');
}

fix require_optional test