mirror of
https://github.com/wassname/side-by-side.git
synced 2026-09-26 14:20:36 +08:00
Add reader factory, improve tests
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
test("readerFactory", () ->
|
||||
factory = injector.get("readerFactory")
|
||||
|
||||
ok(factory("somefile.md"))
|
||||
ok(factory("otherfile.json"))
|
||||
throws(() ->
|
||||
factory("microsoft.doc")
|
||||
, /unknown/i)
|
||||
)
|
||||
Reference in New Issue
Block a user