'use strict'; function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } var foo = _interopDefault(require('https://npmcdn.com/foo')); assert.equal( foo, 42 );