spec: Add a simple test case for desktopCapturer

This commit is contained in:
Cheng Zhao 2015-12-08 13:49:11 +08:00
parent b517b0c598
commit f6c9000f5f

View file

@ -0,0 +1,9 @@
assert = require 'assert'
{desktopCapturer} = require 'electron'
describe 'desktopCapturer', ->
it 'should returns something', (done) ->
desktopCapturer.getSources {types: ['window', 'screen']}, (error, sources) ->
assert.equal error, null
assert.notEqual sources.length, 0
done()