flecks/packages/core/test/split-hooks.js
2024-02-16 20:56:19 -06:00

12 lines
292 B
JavaScript

import {expect} from 'chai';
import {Flecks} from '@flecks/core';
it('can gather split hooks', () => {
const hooks = Flecks.hooks(require.context('./hooks'));
expect(hooks['@flecks/core.config'])
.to.not.be.undefined;
expect(hooks['@flecks/_colocated'])
.to.be.undefined;
});