Skip to content

Instantly share code, notes, and snippets.

@uglow
Last active January 13, 2017 03:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uglow/893afa909364f530e17cc5a086fc4f23 to your computer and use it in GitHub Desktop.
Save uglow/893afa909364f530e17cc5a086fc4f23 to your computer and use it in GitHub Desktop.
import moduleUnderTest from './myComponent.js';
describe('myComponent', () => {
let component;
beforeEach(() => {
angular.mock.module(moduleUnderTest);
angular.mock.inject((myComponent) => {
component = myComponent;
});
});
//...
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment