themer/cli/packages/brave/lib/index.spec.js
2020-04-24 10:30:09 -06:00

11 lines
400 B
JavaScript

const { render, renderInstructions } = require('./index');
const { colors } = require('../../colors-default');
describe('Brave theme generator', () => {
it('should provide installation instructions', async () => {
const files = await Promise.all(render(colors));
const instructions = renderInstructions(files.map(({ name }) => name));
expect(instructions).toMatchSnapshot();
});
});