title: HttpTestingController.expectOne() with queryparameters
body: <p>I am new to angular testing using Jasmine/Karma. I encountered a problem while testing an angular service using <code>HttpTestingController</code>. Here is a part of the source code :
  <div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>getProfile(userName: string) {
      let config = {
        params: {
          user_id: "test"    
        }
      }
      return this.http
        .get(`https://api.github.com/users/${userName}`, config);
    }</code></pre>
  </div>
  </div>
  </p>
  <p>when calling the service using <code>expectOne</code> of <code>HttpTestingController</code> :</p>
  <pre><code>it('should add an Authorization header', () =&gt; {
  let response;
  userService.getProfile('blacksonic').subscribe(response =&gt; {
    expect(response).toBeTruthy();    });
  
  
  const req = 
  httpMock.expectOne({ method: 'GET', url:'https://api.github.com/users/blacksonic' });
                     });
  </code></pre>
  <p>I get the following error :</p>
  <pre><code>Error: Expected one matching request for criteria &quot;Match method: GET, URL: https://api.github.com/users/blacksonic&quot;, found none.
  at HttpClientTestingBackend.expectOne (./node_modules/@angular/common/fesm5/http/testing.js?:301:19)
  at UserContext.eval (./src/app/Interceptors/Interceptor.spec.ts?:85:28)
  at ZoneDelegate.invoke (./node_modules/zone.js/dist/zone.js?:387:26)
  at ProxyZoneSpec.onInvoke (./node_modules/zone.js/dist/zone-testing.js?:287:39)
  at ZoneDelegate.invoke (./node_modules/zone.js/dist/zone.js?:386:32)
  at Zone.run (./node_modules/zone.js/dist/zone.js?:137:43)
  at runInTestZone (./node_modules/zone.js/dist/zone-testing.js?:508:34)
  at UserContext.eval (./node_modules/zone.js/dist/zone-testing.js?:523:20)
  </code></pre>