mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
8 lines
310 B
JavaScript
8 lines
310 B
JavaScript
var expect = require('chai').expect;
|
|
|
|
module.exports = function(helpers) {
|
|
var widget = helpers.mount(require('./index'), {});
|
|
expect(widget.getWidgets('bar').length).to.equal(2);
|
|
expect(widget.getWidgets('bar')[0].name).to.equal('a');
|
|
expect(widget.getWidgets('bar')[1].name).to.equal('b');
|
|
}; |