Add spec for constructor-less param

This commit is contained in:
Kevin Sawicki 2016-07-06 09:11:01 -07:00
parent b444b35215
commit a1209b69b3
2 changed files with 8 additions and 1 deletions

View file

@ -34,6 +34,7 @@ describe('ipc module', function () {
assert.equal(a.foo.bar, 'baz')
assert.equal(a.foo.baz, false)
assert.equal(a.bar, 1234)
assert.equal(a.baz(Object.create(null)), 'hello')
})
it('should search module from the user app', function () {

View file

@ -1,4 +1,10 @@
const foo = Object.create(null)
foo.bar = 'baz'
foo.baz = false
module.exports = {foo: foo, bar: 1234}
module.exports = {
foo: foo,
bar: 1234,
baz: function () {
return 'hello'
}
}