From: Galen Charlton Date: Mon, 5 Oct 2015 20:24:43 +0000 (+0000) Subject: webstaff: add unit test for egOrg.root() X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=e901025f0714beaf9d58e54a27c615d4a15d993f;p=evergreen%2Fpines.git webstaff: add unit test for egOrg.root() Signed-off-by: Galen Charlton Signed-off-by: Kathy Lussier --- diff --git a/Open-ILS/web/js/ui/default/staff/test/unit/egOrg.js b/Open-ILS/web/js/ui/default/staff/test/unit/egOrg.js index f919d667ec..253d48bfd2 100644 --- a/Open-ILS/web/js/ui/default/staff/test/unit/egOrg.js +++ b/Open-ILS/web/js/ui/default/staff/test/unit/egOrg.js @@ -32,6 +32,11 @@ describe('egOrg', function(){ mkTree(egIDL, egEnv); expect(egOrg.fullPath(4, true)).toEqual([4, 2, 1]); })); + + it('should provide root', inject(function(egIDL, egEnv, egOrg) { + mkTree(egIDL, egEnv); + expect(egOrg.root().id()).toEqual(1); + })); });