]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/web/js/ui/default/staff/test/unit/egIDL.js
LP#1350042 Browser client templates/scripts (phase 1)
[working/Evergreen.git] / Open-ILS / web / js / ui / default / staff / test / unit / egIDL.js
1 'use strict';
2
3 describe('egIDL', function(){
4     beforeEach(module('egCoreMod'));
5
6     it('should parse the IDL', inject(function(egIDL) {
7         egIDL.parseIDL();
8         expect(egIDL.classes.aou.fields.length).toBeGreaterThan(0);
9     }));
10
11     it('should create an aou object', inject(function(egIDL) {
12         egIDL.parseIDL();
13         var org = new egIDL.aou();
14         expect(typeof org.id).toBe('function');
15     }));
16
17     it('should create an aou object with accessor/mutators', inject(function(egIDL) {
18         egIDL.parseIDL();
19         var org = new egIDL.aou();
20         org.name('AN ORG');
21         expect(org.name()).toBe('AN ORG');
22     }));
23 });
24
25