UNPKG

marko-widgets

Version:

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

13 lines (10 loc) 319 B
var expect = require('chai').expect; exports.Widget = function(config) { this.asyncWidget = true; this.name = config.name; var helloWidget = this.getWidget('hello'); this.test = function() { expect(helloWidget).to.be.an('object'); expect(helloWidget.name).to.equal('Async'); }; };