electron/spec-main/fixtures/module/function-with-properties.js

18 lines
213 B
JavaScript
Raw Normal View History

function foo () {
return 'hello'
}
foo.bar = 'baz'
2016-08-16 17:37:51 +00:00
foo.nested = {
prop: 'yes'
}
foo.method1 = function () {
return 'world'
}
foo.method1.prop1 = function () {
return 123
}
module.exports = {
foo: foo
}