describe('when the host is set', function () {
    describe('with a port', function () {
      it('has the correct href', function () {
        location.host = 'example.net:8080';
        expect(location.href).toEqual('http://user:pass@example.net:8080/the/path?the=query');