mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
11 lines
289 B
JavaScript
11 lines
289 B
JavaScript
var expect = require('chai').expect;
|
|
var hooks = require('./hooks');
|
|
|
|
module.exports = function(helpers) {
|
|
var component = helpers.mount(require('./index'), { name: 'Frank' });
|
|
|
|
component.destroy();
|
|
|
|
expect(hooks.getHookNames()).deep.equal(['root:destroy', 'foo:destroy']);
|
|
};
|