mirror of
https://github.com/wassname/side-by-side.git
synced 2026-09-21 13:30:27 +08:00
10 lines
187 B
CoffeeScript
10 lines
187 B
CoffeeScript
test("readerFactory", () ->
|
|
factory = injector.get("readerFactory")
|
|
|
|
ok(factory("somefile.md"))
|
|
ok(factory("otherfile.json"))
|
|
throws(() ->
|
|
factory("microsoft.doc")
|
|
, /unknown/i)
|
|
)
|