test(common): TokenExtractor should extend HttpXsrfTokenExtractor in xsrf spec (#24649)
PR Close #24649
This commit is contained in:
parent
ff3550c304
commit
0a6434b066
@ -8,12 +8,12 @@
|
|||||||
|
|
||||||
import {HttpHeaders} from '../src/headers';
|
import {HttpHeaders} from '../src/headers';
|
||||||
import {HttpRequest} from '../src/request';
|
import {HttpRequest} from '../src/request';
|
||||||
import {HttpXsrfCookieExtractor, HttpXsrfInterceptor} from '../src/xsrf';
|
import {HttpXsrfCookieExtractor, HttpXsrfInterceptor, HttpXsrfTokenExtractor} from '../src/xsrf';
|
||||||
|
|
||||||
import {HttpClientTestingBackend} from '../testing/src/backend';
|
import {HttpClientTestingBackend} from '../testing/src/backend';
|
||||||
|
|
||||||
class SampleTokenExtractor {
|
class SampleTokenExtractor extends HttpXsrfTokenExtractor {
|
||||||
constructor(private token: string|null) {}
|
constructor(private token: string|null) { super(); }
|
||||||
|
|
||||||
getToken(): string|null { return this.token; }
|
getToken(): string|null { return this.token; }
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user