UNPKG

marko-widgets

Version:

Module to support binding of behavior to rendered UI components rendered on the server or client

20 lines (17 loc) 482 B
var expect = require('chai').expect; function Widget(config) { this.label = config.label; this.name = 'app-fixed-id'; window.appFixedId = this; } Widget.prototype = { testGetWidget: function() { var helloWidget = this.getWidget('hello'); expect(helloWidget != null).to.equal(true); }, testGetEl: function() { var wrapperEl = this.getEl('wrapper'); expect(wrapperEl != null).to.equal(true); } }; exports.Widget = Widget;