
/**
 * Module dependencies.
 */

var photon = require('../');
var assert = require('assert');

describe('photon()', function () {

  it('should be a "function"', function () {
    assert('function' === typeof photon);
  });

  it('should not Photon-ify a Photon URL', function () {
    var url = 'https://i1.wp.com/www.gravatar.com/avatar/693307b4e0cb9366f34862c9dfacd7fc';
    assert(photon(url) === url);
  });
});

@@ -219,16 +219,212 @@
 %0A  %7D);%0A%0A
+  it('should Photon-ify a basic image URL', function () %7B%0A    var url = 'http://example.com/image.png';%0A    assert(RegExp('https://i%5B0-2%5D.wp.com/example.com/image.png').test(photon(url)));%0A  %7D);%0A%0A
   it('sh

add another test