Back to home page

EIC code displayed by LXR

 
 

    


Warning, /firebird/firebird-ng/src/app/services/three.service.spec.ts is written in an unsupported language. File is not indexed.

0001 import { TestBed } from '@angular/core/testing';
0002 import { ThreeService } from './three.service';
0003 
0004 describe('ThreeService', () => {
0005     let service: ThreeService;
0006 
0007     beforeEach(() => {
0008         TestBed.configureTestingModule({
0009             providers: [ThreeService],
0010         });
0011         service = TestBed.inject(ThreeService);
0012     });
0013 
0014     it('should throw error if container not found when using string id', () => {
0015         // This test doesn't require WebGL - it fails before renderer creation
0016         expect(() => service.init('nonexistent-id')).toThrowError(/Container element #nonexistent-id not found/);
0017     });
0018 });