Add spec for q.

This commit is contained in:
Cheng Zhao 2014-01-10 15:19:08 +08:00
parent e536d0e7a8
commit a1a091d805
2 changed files with 11 additions and 0 deletions

View file

@ -7,6 +7,7 @@
"coffeelint": "~0.6.1",
"mocha": "~1.13.0",
"pathwatcher": "0.13.0",
"q": "0.9.7",
"walkdir": "~0.0.7",
"runas": "0.3.0",
"formidable": "~1.0.14",

View file

@ -30,3 +30,13 @@ describe 'third-party module', ->
watcher.close()
done()
fs.writeFileSync file, 'content2'
describe 'q', ->
Q = require 'q'
describe 'Q.when', ->
it 'emits the fullfil callback', (done) ->
Q(true).then (val) ->
assert.equal val, true
console.log 'test'
done()