This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
I am using Babel as my Transpiler. And loading my dependencies with SystemJS. | |
I cannot include eventemitter3 as a global path configuration for SystemJS either. | |
*/ | |
// # Example 1 | |
// ## Works in Browser, but fails in the compiler. | |
import EventEmitter3 from './lib/eventemitter3/index'; | |
export class MyEmitter extends EventEmitter3 {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Also has a dependency on Underscore JS | |
app.service 'resourceService', ['$resource', '$rootScope', '$q', ($resource, $rootScope, $q)-> | |
$rootScope.resources = {} | |
resourceService = | |
newResource : (tag, url, paramDefaults = {}, actions = {}, options = {})-> | |
if !$rootScope.resources[tag] | |
actions = _.extend actions, | |
update : | |
method : 'PUT' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2014-05-14T04:27:17.114937+00:00 heroku[web.1]: Starting process with command `node web.js` | |
2014-05-14T04:27:19.248185+00:00 app[web.1]: | |
2014-05-14T04:27:19.248256+00:00 app[web.1]: module.js:340 | |
2014-05-14T04:27:19.248761+00:00 app[web.1]: throw err; | |
2014-05-14T04:27:19.248768+00:00 app[web.1]: ^ | |
2014-05-14T04:27:19.249925+00:00 app[web.1]: Error: Cannot find module '/app/back/back-app.js' | |
2014-05-14T04:27:19.249928+00:00 app[web.1]: at Function.Module._resolveFilename (module.js:338:15) | |
2014-05-14T04:27:19.249930+00:00 app[web.1]: at Function.require.resolve (module.js:384:19) | |
2014-05-14T04:27:19.249932+00:00 app[web.1]: at requireUncached (/app/lib/commands.js:61:14) | |
2014-05-14T04:27:19.249933+00:00 app[web.1]: at startServer (/app/lib/commands.js:81:15) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use \PHPUnit_Framework_TestCase as TestCase, | |
\PHPUnit_Framework_MockObject_MockBuilder as MockBuilder, | |
\PHPUnit_Framework_MockObject_MockObject as MockObject; | |
trait ZF2InterfaceInjectionTrait extends TestCase | |
{ | |
/** | |
* Provides the default mocks for each of the interfaces defined in your test configuration |