testSendPostDoesntSetHeaderWithFormData() {
    if (!globalThis['FormData']) {
      return;
    }
    const formData = new globalThis['FormData']();
    formData.append('name', 'value');

    stubXhrToReturn(200);
    return xhr.send('POST', 'test-url', formData)
        .then(/**
                 @suppress {strictMissingProperties,missingProperties}
                 suppression added to enable type checking
               */
              function(stubXhr) {
                assertEquals('POST', stubXhr.method);
                assertEquals('test-url', stubXhr.url);
                assertEquals(undefined, stubXhr.headers['Content-Type']);
              });
  }
@suppress {strictMissingProperties,missingProperties}
                 suppression added to enable type checking