
committed by
Kara Erickson

parent
e1ee90c218
commit
f1b0547f0a
@ -17,7 +17,7 @@ import {expect} from '@angular/platform-browser/testing/src/matchers';
|
||||
import {modifiedInIvy, obsoleteInIvy, onlyInIvy} from '@angular/private/testing';
|
||||
|
||||
import {InternalNgModuleRef, NgModuleFactory} from '../../src/linker/ng_module_factory';
|
||||
import {clearModuleRegistry} from '../../src/linker/ng_module_factory_registration';
|
||||
import {clearModulesForTest} from '../../src/linker/ng_module_factory_registration';
|
||||
import {stringify} from '../../src/util/stringify';
|
||||
|
||||
class Engine {}
|
||||
@ -294,11 +294,7 @@ function declareTests(config?: {useJit: boolean}) {
|
||||
describe('id', () => {
|
||||
const token = 'myid';
|
||||
|
||||
// Ivy TestBed clears module registry in resetTestingModule so this afterEach is not needed
|
||||
// for Ivy
|
||||
if (!ivyEnabled) {
|
||||
afterEach(() => clearModuleRegistry());
|
||||
}
|
||||
afterEach(() => clearModulesForTest());
|
||||
|
||||
it('should register loaded modules', () => {
|
||||
@NgModule({id: token})
|
||||
|
Reference in New Issue
Block a user