api-bdd-test
Version:
use the bdd(cucumber) to test the RESTfull API
13 lines (10 loc) • 330 B
text/coffeescript
loadConfig = require 'load-config-file'
yaml = require 'js-yaml'
cs = require 'coffee-script'
# first search.
loadConfig.register(['.yaml', '.yml'], yaml.safeLoad)
# second search
loadConfig.register(['.cson', 'coffee'], cs.eval.bind(cs))
# third search.
loadConfig.register('.json', JSON.parse)
module.exports = loadConfig