From 59824254364c4ae63e23c23eab37a51d8e4dad4c Mon Sep 17 00:00:00 2001 From: Drummond Dawson Date: Sun, 24 Jun 2018 21:22:22 -0400 Subject: [PATCH] test(common): TokenExtractor should extend HttpXsrfTokenExtractor in xsrf spec (#24649) PR Close #24649 --- packages/common/http/test/xsrf_spec.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/common/http/test/xsrf_spec.ts b/packages/common/http/test/xsrf_spec.ts index 36ba12bdf9..02a1569b07 100644 --- a/packages/common/http/test/xsrf_spec.ts +++ b/packages/common/http/test/xsrf_spec.ts @@ -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; } }