seed-form-group
Version:
Form group component pack for Seed
37 lines (30 loc) • 817 B
JavaScript
// Test :: Build
/* globals describe: true, it: true */
;
var barista = require('seed-barista');
var expect = require('chai').expect;
describe('seed-form-group: build', function() {
describe('build', function() {
var style = `
@import "./_index";
`;
var output = barista({ content: style });
it('should build', function() {
expect(output.css.length).to.exist;
});
});
describe('publish', function() {
var style = `
@import "./_index";
@import "./_index";
@import "./_index";
@import "./_index";
@import "./_index";
`;
var output = barista({ content: style });
it('should only be compiled once', function() {
var $o = output.$('.c-form-group');
expect($o.selectors.length).to.equal(1);
});
});
});