mirror of
https://github.com/wassname/side-by-side.git
synced 2026-10-04 13:00:55 +08:00
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.
This commit is contained in:
1 parent
9a4fce961b
commit
ff0bd79c53
4 files changed
+9
-10
No files matched your search
@@ -0,0 +1,6 @@
|
||||
this.testReader = (name, testCases) ->
|
||||
injector = angular.injector(["ng", "sideBySide"])
|
||||
reader = injector.get(name)
|
||||
|
||||
for testCase in testCases
|
||||
deepEqual(reader(testCase.tested), testCase.expected)
|
||||
Reference in new issue
Block a user