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

17 lines
213 B
JavaScript

function foo () {
return 'hello'
}
foo.bar = 'baz'
foo.nested = {
prop: 'yes'
}
foo.method1 = function () {
return 'world'
}
foo.method1.prop1 = function () {
return 123
}
module.exports = {
foo: foo
}