Last active
January 2, 2016 22:49
-
-
Save ecowden/8372750 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// "clean" way to pull in app module | |
var appModule = require('../appModule'); | |
appModule.controller('myController', function(dependencyA, dependencyB) { | |
// ... | |
}); | |
// --- TEST --- | |
describe('myController', function () { | |
// wait, what? We need to require() it somehow first, right? Does this work? | |
beforeEach(function() { | |
require('../appModule'); | |
module('appModule')); | |
} | |
it('whatever...', function () { | |
// ... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment