🐛 Add toString support to remote functions
This commit is contained in:
parent
85d66d2413
commit
818738ce84
2 changed files with 8 additions and 0 deletions
|
@ -161,6 +161,11 @@ describe('ipc module', function () {
|
|||
assert.equal(typeof remote.clipboard.readText, 'function')
|
||||
assert.equal(typeof remote.shell.openExternal, 'function')
|
||||
})
|
||||
|
||||
it('returns toString() of original function via toString()', function () {
|
||||
var readText = remote.clipboard.readText
|
||||
assert(readText.toString().startsWith('function'))
|
||||
})
|
||||
})
|
||||
|
||||
describe('remote object in renderer', function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue