We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb1163e commit e53c8abCopy full SHA for e53c8ab
1 file changed
packages/core/test/transfer_state_spec.ts
@@ -9,7 +9,7 @@
9
import {APP_ID as APP_ID_TOKEN, PLATFORM_ID} from '../src/core';
10
import {TestBed} from '../testing';
11
12
-import {getDocument} from '../src/render3/interfaces/document';
+import {DOCUMENT} from '../src/document';
13
import {makeStateKey, TransferState} from '../src/transfer_state';
14
15
function removeScriptTag(doc: Document, id: string) {
@@ -38,13 +38,13 @@ describe('TransferState', () => {
38
const DELAYED_KEY = makeStateKey<string>('delayed');
39
40
beforeEach(() => {
41
- doc = getDocument();
42
TestBed.configureTestingModule({
43
providers: [
44
{provide: APP_ID_TOKEN, useValue: APP_ID},
45
{provide: PLATFORM_ID, useValue: 'browser'},
46
],
47
});
+ doc = TestBed.inject(DOCUMENT);
48
49
50
afterEach(() => {
0 commit comments