Add missing -spec suffix to desktop capturer spec
This commit is contained in:
parent
2be7f6c693
commit
047975609d
1 changed files with 0 additions and 0 deletions
17
spec/api-desktop-capturer-spec.js
Normal file
17
spec/api-desktop-capturer-spec.js
Normal file
|
@ -0,0 +1,17 @@
|
|||
var assert, desktopCapturer;
|
||||
|
||||
assert = require('assert');
|
||||
|
||||
desktopCapturer = require('electron').desktopCapturer;
|
||||
|
||||
describe('desktopCapturer', function() {
|
||||
return it('should returns something', function(done) {
|
||||
return desktopCapturer.getSources({
|
||||
types: ['window', 'screen']
|
||||
}, function(error, sources) {
|
||||
assert.equal(error, null);
|
||||
assert.notEqual(sources.length, 0);
|
||||
return done();
|
||||
});
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue