hunk.code_window:         let error = parse('a{}').first.error('Error', { plugin: 'test' });
           expect(error.plugin).to.eql('test');
           expect(error.toString()).to.match(
               /^CssSyntaxError: test:<css input>:1:1: Error/);
       });
   });
hunk.labels: keep keep keep replace keep keep keep
hunk.after_edit:             /^CssSyntaxError: test: <css input>:1:1: Error/);
  
hunk.file_path: test/css-syntax-error.js
hunk.type: replace
file: import Warning from '../lib/warning';
  import parse   from '../lib/parse';
  
  import { expect } from 'chai';
  
  describe('Warning', () => {
  
      describe('toString()', () => {
  
          it('outputs simple warning', () => {
              let warning = new Warning('text');
              expect(warning.toString()).to.eql('text');
          });
  
          it('outputs warning with plugin', () => {
              let warning = new Warning('text', { plugin: 'plugin' });
              expect(warning.toString()).to.eql('plugin: text');
          });
  
          it('outputs warning with plugin and node', () => {
              let root    = parse('a{}', { from: '/a.css' });
              let warning = new Warning('text', {
                  plugin: 'plugin',
                  node:    root.first
              });
              expect(warning.toString()).to.eql('plugin:/a.css:1:1: text');
          });
  
      });
  
  });
  