test(common): TokenExtractor should extend HttpXsrfTokenExtractor in xsrf spec (#24649)

PR Close #24649
This commit is contained in:
Drummond Dawson 2018-06-24 21:22:22 -04:00 committed by Igor Minar
parent ff3550c304
commit 0a6434b066

View File

@ -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; }
} }