Last active
August 29, 2015 13:59
-
-
Save mg/10523916 to your computer and use it in GitHub Desktop.
angular-directive-spec
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
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