mirror of
https://github.com/wassname/side-by-side.git
synced 2026-09-23 13:50:24 +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,7 +1,4 @@
|
||||
test("markdownReader", () ->
|
||||
injector = angular.injector(["ng", "sideBySide"])
|
||||
markdownReader = injector.get("markdownReader")
|
||||
|
||||
testCases = [{
|
||||
tested: """
|
||||
Title: Universal Declaration of Human Rights
|
||||
@@ -73,6 +70,5 @@ test("markdownReader", () ->
|
||||
}
|
||||
}]
|
||||
|
||||
for testCase in testCases
|
||||
deepEqual(markdownReader(testCase.tested), testCase.expected)
|
||||
testReader("markdownReader", testCases)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user