spec: Add a simple test case for desktopCapturer
This commit is contained in:
parent
b517b0c598
commit
f6c9000f5f
1 changed files with 9 additions and 0 deletions
9
spec/api-desktop-capturer.coffee
Normal file
9
spec/api-desktop-capturer.coffee
Normal 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()
|
Loading…
Reference in a new issue