Skip to content

Seed Barista - v0.4.0

Choose a tag to compare

@ItsJonQ ItsJonQ released this 15 May 14:24
· 147 commits to master since this release

Updates

The $ method from Parser has been renamed to rule.

Example:

describe('your CSS test', function() {
  it('should render a class of wizard + harry', function() {
    var output = barista({ file: '_wizard.scss' });
    var rule = output.rule('.your-a-wizard.harry');

    assert.isOk(rule.exists());
  });
});

Note: $ is still around, but no longer mentioned as the preferred way for testing. Will deprecate in the future.

Resolves: #12