Add tests for setting remote property null/undefined
This commit is contained in:
parent
7065123266
commit
746f636016
1 changed files with 6 additions and 0 deletions
|
@ -175,8 +175,14 @@ describe('ipc module', function () {
|
|||
it('can change its properties', function () {
|
||||
var property = remote.require(path.join(fixtures, 'module', 'property.js'))
|
||||
assert.equal(property.property, 1127)
|
||||
|
||||
property.property = null
|
||||
assert.equal(property.property, null)
|
||||
property.property = undefined
|
||||
assert.equal(property.property, undefined)
|
||||
property.property = 1007
|
||||
assert.equal(property.property, 1007)
|
||||
|
||||
assert.equal(property.getFunctionProperty(), 'foo-browser')
|
||||
property.func.property = 'bar'
|
||||
assert.equal(property.getFunctionProperty(), 'bar-browser')
|
||||
|
|
Loading…
Reference in a new issue