Skip to content

Instantly share code, notes, and snippets.

@mg
Last active August 29, 2015 13:59
Show Gist options
  • Save mg/10523916 to your computer and use it in GitHub Desktop.
Save mg/10523916 to your computer and use it in GitHub Desktop.
angular-directive-spec
describe('Testing directive', function () {
var element, scope, serviceMock;
beforeEach(function() {
angular.module('ngMyPackageMocks', [])
.service('Service', function() {
serviceMock= this;
});
angular.module('Test', ['ngMyPackage', 'ngMyPackageMocks'])
});
beforeEach(module('Test'));
function compile($compile, $rootScope) {
var linkingFn = $compile(
'<></>'
);
element = linkingFn($rootScope.$new());
scope= element.isolateScope();
}
beforeEach(inject(function($compile, $rootScope) {
compile($compile, $rootScope);
}));
/*it('', inject(function ($compile, $rootScope) {
compile($compile, $rootScope);
expect();
}));*/
it('should', function() {
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment