text: var postcss = require('postcss');
  var expect  = require('chai').expect;
  
  var plugin = require('../');
  
  var test = function (input, output, opts, done) {
      postcss([ plugin(opts) ]).process(input).then(function (result) {
          expect(result.css).to.eql(output);
          expect(result.warnings()).to.be.empty;
          done();
      }).catch(function (error) {
          done(error);
      });
  };
  
  describe('postcss-inline-image', function () {
  
      it('should bundle images as data URIs', function (done) {
          test('.foo { background-inline-image: url(test/onepx.gif); }',
               '.foo { background-image: url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==); }', {}, done);
      });
  
  });
  