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

@ -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()