mirror of
https://github.com/wassname/side-by-side.git
synced 2026-09-22 13:40:40 +08:00
19 lines
324 B
CoffeeScript
19 lines
324 B
CoffeeScript
factory = {}
|
|
|
|
module "reader factory", {
|
|
setup: () ->
|
|
factory = injector.get "readerFactory"
|
|
}
|
|
|
|
test "reads markdown", () ->
|
|
ok factory "somefile.md"
|
|
ok factory "otherfile.markdown"
|
|
|
|
test "reads json", () ->
|
|
ok factory "fried.json"
|
|
|
|
test "doesn't read doc", () ->
|
|
throws () ->
|
|
factory "microsoft.doc"
|
|
, /unknown/i
|