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