Files
side-by-side/source/scripts/tests/reader/_abstract.coffee
T
Vit Brunner ff0bd79c53 Reduce duplication
Some would also say it'd be a good idea not to put random stuff in the
global namespace. One day I'll figure it out.
2013-06-11 08:59:31 +01:00

7 lines
218 B
CoffeeScript

this.testReader = (name, testCases) ->
injector = angular.injector(["ng", "sideBySide"])
reader = injector.get(name)
for testCase in testCases
deepEqual(reader(testCase.tested), testCase.expected)