mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
12 lines
331 B
JavaScript
12 lines
331 B
JavaScript
var expect = require('chai').expect;
|
|
|
|
module.exports = function(helpers) {
|
|
var widget = helpers.mount(require('./index.marko'));
|
|
|
|
expect(widget.el.querySelector('pre').innerHTML).to.equal('');
|
|
|
|
widget.submit();
|
|
widget.update();
|
|
|
|
expect(widget.el.querySelector('pre').innerHTML).to.equal('Placeholder error');
|
|
}; |