This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
$httpBackend.expectGET doesn't fail with undefined url parameter #10934
Closed
Description
$httpBackend.expectGET() accepts all GET requests when it's url parameter is undefined. IMHO it should fail.
I have a test where the URL parameter for expectGET() is retrieved from an array. After I renamed the array variable the tests continued to pass, when I was expecting them to fail.
$httpBackend.expextGET(void 0).respond(response);
issue GET
$httpBackend.flush();
does not fail.
Angular 1.3.11, PhantomJS