Files
2014-12-22 23:07:40 +01:00

19 lines
314 B
CoffeeScript

factory = {}
module "reader factory", {
setup: ->
factory = getInjector().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