electron/spec/node/message_loop.coffee

19 lines
493 B
CoffeeScript
Raw Normal View History

describe 'message loop', ->
describe 'process.nextTick', ->
it 'should emit the callback', (done) ->
process.nextTick done
it 'should work in nested calls', (done) ->
process.nextTick ->
process.nextTick ->
process.nextTick done
describe 'setImmediate', ->
it 'should emit the callback', (done) ->
setImmediate done
it 'should work in nested calls', (done) ->
setImmediate ->
setImmediate ->
setImmediate done