"use strict";

require('should');

const generator = require('../lib').default;

const b = generator('block');

describe('module', function () {
  it('should generate block', function () {
    const block = b();

    block.should.equal('block');
  });

  it('should generate block with modifier', function () {
    const block = b({ modifier: true });

    block.should.equal('block block_modifier');
  });

  it('should generate block with modifier and value', function () {
    const block = b({ modifier: 'value' });

    block.should.equal('block block_modifier_value');
  });

  it('should generate block with mixin', function () {
    const block = b(null, 'mixin');

    block.should.equal('block mixin');
  });

  it('should generate block with mixin if an empty object is provided as modifiers', function () {
    const block = b({}, 'mixin');

    block.should.equal('block mixin');
  });

  it('should generate block with modifier and mixin', function () {
    const block = b({ modifier: 'value' }, 'mixin');

    block.should.equal('block block_modifier_value mixin');
  });
});

@@ -705,32 +705,197 @@
 mixin');%0A  %7D);%0A%0A
+  it('should generate block with multiple mixins', function () %7B%0A    const block = b(null, %5B'mixin', 'nixim'%5D);%0A%0A    block.should.equal('block mixin nixim');%0A  %7D);%0A%0A
   it('should gen
@@ -1096,152 +1096,565 @@
 th m
-odifier and mixin', function () %7B%0A    const block = b(%7B modifier: 'value' %7D, 'mixin');%0A%0A    block.should.equal('block block_modifier_value mixin
+ultiple mixins if an empty object is provided as modifiers', function () %7B%0A    const block = b(%7B%7D, %5B'mixin', 'nixim'%5D);%0A%0A    block.should.equal('block mixin nixim');%0A  %7D);%0A%0A  it('should generate block with modifier and mixin', function () %7B%0A    const block = b(%7B modifier: 'value' %7D, 'mixin');%0A%0A    block.should.equal('block block_modifier_value mixin');%0A  %7D);%0A%0A  it('should generate block with modifier and mixin', function () %7B%0A    const block = b(%7B modifier: 'value' %7D, %5B'mixin', 'nixim'%5D);%0A%0A    block.should.equal('block block_modifier_value mixin nixim
 ');%0A

Update block tests