     });

      test('link that matches url space is intercepted', function() {
        var anchor = document.createElement('a');
        anchor.href = makeAbsoluteUrl('/foo');

        expect(isClickCaptured(anchor, '/fo+')).to.be.eq(true);
          expect(pushStateCalls).to.be.equal(1);
      });

      test('link that doesn\'t match url space isn\'t intercepted', function() {
        var anchor = document.createElement('a');
        anchor.href = makeAbsoluteUrl('/bar');

        expect(isClickCaptured(