1 import {IdlService} from './idl.service';
3 describe('IdlService', () => {
4 let service: IdlService;
6 service = new IdlService();
9 it('should parse the IDL', () => {
11 expect(service.classes['aou'].fields.length).toBeGreaterThan(0);
14 it('should create an aou object', () => {
16 const org = service.create('aou');
17 expect(typeof org.id).toBe('function');
20 it('should create an aou object with accessor/mutators', () => {
22 const org = service.create('aou');
24 expect(org.name()).toBe('AN ORG');