Files
side-by-side/source/documents/scripts/tests/reader/_abstract.js.coffee
T
Vit Brunner 8c777c5301 Switch to tabs for indentation
I got drunk, read the coffeescript style guide, and decided to use
spaces. Spaces for indentation is still as bad an idea as it ever were,
and this is not a coffeescript project - it's multilingual, hence using
coffeescript conventions is pointless.
2013-06-15 16:55:27 +01:00

7 lines
203 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)