Last active
January 24, 2016 22:41
-
-
Save dalemanthei/16231969da7f9177be7f to your computer and use it in GitHub Desktop.
A Jasmine beforeEach function to get a filter for testing
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
var myFilter; | |
beforeEach(function () { | |
module('myModule'); | |
inject(function ($injector) { | |
myFilter = $injector.get('$filter')('myFilter'); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment