test(ivy): add compiler.getModuleId support in R3TestBed (#28097)
This update brings `getModuleId` function support to R3TestBed-specific Compiler instance. PR Close #28097
This commit is contained in:
@ -80,20 +80,19 @@ if (isBrowser) {
|
||||
});
|
||||
|
||||
describe('Compiler', () => {
|
||||
fixmeIvy('FW-855: TestBed.get(Compiler) should return TestBed-specific Compiler instance')
|
||||
.it('should return NgModule id when asked', () => {
|
||||
@NgModule({
|
||||
id: 'test-module',
|
||||
})
|
||||
class TestModule {
|
||||
}
|
||||
it('should return NgModule id when asked', () => {
|
||||
@NgModule({
|
||||
id: 'test-module',
|
||||
})
|
||||
class TestModule {
|
||||
}
|
||||
|
||||
TestBed.configureTestingModule({
|
||||
imports: [TestModule],
|
||||
});
|
||||
const compiler = TestBed.get(Compiler) as Compiler;
|
||||
expect(compiler.getModuleId(TestModule)).toBe('test-module');
|
||||
});
|
||||
TestBed.configureTestingModule({
|
||||
imports: [TestModule],
|
||||
});
|
||||
const compiler = TestBed.get(Compiler) as Compiler;
|
||||
expect(compiler.getModuleId(TestModule)).toBe('test-module');
|
||||
});
|
||||
});
|
||||
|
||||
describe('errors', () => {
|
||||
|
Reference in New Issue
Block a user