GUI -- Host view implemented on client and server side.

Change-Id: I5b84f75e0843a5a669e4661bb9db41e81b78a78d
diff --git a/web/gui/src/main/webapp/tests/app/fw/util/fn-spec.js b/web/gui/src/main/webapp/tests/app/fw/util/fn-spec.js
index 2ec8088..a7e8b47 100644
--- a/web/gui/src/main/webapp/tests/app/fw/util/fn-spec.js
+++ b/web/gui/src/main/webapp/tests/app/fw/util/fn-spec.js
@@ -202,7 +202,7 @@
         expect(fs.areFunctions(fs, [
             'isF', 'isA', 'isS', 'isO', 'contains',
             'areFunctions', 'areFunctionsNonStrict', 'windowSize', 'find',
-            'inArray', 'removeFromArray', 'cap'
+            'inArray', 'removeFromArray', 'isEmptyObject', 'cap'
         ])).toBeTruthy();
     });
 
@@ -325,6 +325,14 @@
         expect(array).toEqual(['z', 'z', 'y']);
     });
 
+    // === Tests for isEmptyObject()
+    it('should return true if an object is empty', function () {
+        expect(fs.isEmptyObject({})).toBe(true);
+    });
+    it('should return false if an object is not empty', function () {
+        expect(fs.isEmptyObject({foo: 'bar'})).toBe(false);
+    });
+
     // === Tests for cap()
     it('should ignore non-alpha', function () {
         expect(fs.cap('123')).toEqual('123');