Add spec for q.
This commit is contained in:
parent
e536d0e7a8
commit
a1a091d805
2 changed files with 11 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue