mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
spec: Add a simple test case for desktopCapturer
This commit is contained in:
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()
|
||||
Reference in New Issue
Block a user