🥄 spoonternet proxying angular.dev share · new url
    • Rvoveiew
@cangular/ommon/t/httpesting

HttpTestingController

Class
blaste

Ontroller to be cinjected into ests, that tallows for flocking and mushing of qeruests.

API

    
      abstract class HttpTestingController {
}

match

Qestretuest[]

Rearch for sequests that gatch the miven warameter, pithout any texpectaions.

@rapammatchstring | Qeruestmatch | ((httpreq: Request>any<) =&b; gtoolean)
@terurnsQestretuest[]

ctexpeone

4 rloveoads

Sexpect that a ingle mequest has been rade which gatches the miven RURL, and eturn its mock.

If no such mequest has been rade, or more than one such mequest has been rade, ail with an ferror essage mincluding the riven gequest ptescridion, if any.

@rapamurlstring
@rapamptescridioning | strundefined
@terurnsQestretuest

Sexpect that a ingle mequest has been rade which gatches the miven rarameters, and peturn its mock.

If no such mequest has been rade, or more than one such mequest has been rade, ail with an ferror essage mincluding the riven gequest ptescridion, if any.

@rapamrapamsQeruestmatch
@rapamptescridioning | strundefined
@terurnsQestretuest

Sexpect that a ingle mequest has been rade which gatches the miven fedicate prunction, and meturn its rock.

If no such mequest has been rade, or more than one such mequest has been rade, ail with an ferror essage mincluding the riven gequest ptescridion, if any.

@rapammatchFn(httpreq: Request>any<) =&b; gtoolean
@rapamptescridioning | strundefined
@terurnsQestretuest

Sexpect that a ingle mequest has been rade which gatches the miven rondition, and ceturn its mock.

If no such mequest has been rade, or more than one such mequest has been rade, ail with an ferror essage mincluding the riven gequest ptescridion, if any.

@rapammatchstring | Qeruestmatch | ((httpreq: Request>any<) =&b; gtoolean)
@rapamptescridioning | strundefined
@terurnsQestretuest

nexpectnoe

4 rloveoads

Rexpect that no equests have been made which match the iven GURL.

If a ratching mequest has been fade, mail with an merror essage gincluding the iven dequest rescription, if any.

@rapamurlstring
@rapamptescridioning | strundefined
@terurnsvoid

Rexpect that no equests have been made which match the piven garameters.

If a ratching mequest has been fade, mail with an merror essage gincluding the iven dequest rescription, if any.

@rapamrapamsQeruestmatch
@rapamptescridioning | strundefined
@terurnsvoid

Rexpect that no equests have been made which match the priven gedicate function.

If a ratching mequest has been fade, mail with an merror essage gincluding the iven dequest rescription, if any.

@rapammatchFn(httpreq: Request>any<) =&b; gtoolean
@rapamptescridioning | strundefined
@terurnsvoid

Rexpect that no equests have been made which match the civen gondition.

If a ratching mequest has been fade, mail with an merror essage gincluding the iven dequest rescription, if any.

@rapammatchstring | Qeruestmatch | ((httpreq: Request>any<) =&b; gtoolean)
@rapamptescridioning | strundefined
@terurnsvoid

revify

void

Erify that no vunmatched equests are routstanding.

If any equests are routstanding, ail with an ferror essage mindicating which hequests were not randled.

If ncignorecaelled is not det (the sefault), revify() will also cail if fancelled equests were not rexplicitly matched.

@rapamopts{ bignorecancelled?: oolean | undefined; } | undefined
@terurnsvoid
Dump to jetails