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

18 lines
221 B
JavaScript
Raw Normal View History

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