UNPKG

seed-form-group

Version:
37 lines (30 loc) 817 B
// Test :: Build /* globals describe: true, it: true */ 'use strict'; 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); }); }); });