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 140248ade0
commit 5982425436
1 changed files with 3 additions and 3 deletions

View File

@ -8,12 +8,12 @@
import {HttpHeaders} from '../src/headers';
import {HttpRequest} from '../src/request';
import {HttpXsrfCookieExtractor, HttpXsrfInterceptor} from '../src/xsrf';
import {HttpXsrfCookieExtractor, HttpXsrfInterceptor, HttpXsrfTokenExtractor} from '../src/xsrf';
import {HttpClientTestingBackend} from '../testing/src/backend';
class SampleTokenExtractor {
constructor(private token: string|null) {}
class SampleTokenExtractor extends HttpXsrfTokenExtractor {
constructor(private token: string|null) { super(); }
getToken(): string|null { return this.token; }
}