diff --git a/spec/api/menu.coffee b/spec/api/menu.coffee new file mode 100644 index 000000000000..396a41f92b3e --- /dev/null +++ b/spec/api/menu.coffee @@ -0,0 +1,9 @@ +assert= require 'assert' +remote = require 'remote' +Menu = remote.require 'menu' + +describe 'Menu API', -> + describe 'Menu.buildFromTemplate', -> + it 'should be able to attach extra fields', -> + menu = Menu.buildFromTemplate [label: 'text', extra: 'field'] + assert.equal menu.items[0].extra, 'field'