[WEB-GUI Tests] Fixing UI unit tests
Change-Id: I6eb28a706e148da17f8b2d7d5f8e44821851462a
diff --git a/web/gui/src/main/webapp/tests/app/onos-spec.js b/web/gui/src/main/webapp/tests/app/onos-spec.js
index f311e72..c7df8d8 100644
--- a/web/gui/src/main/webapp/tests/app/onos-spec.js
+++ b/web/gui/src/main/webapp/tests/app/onos-spec.js
@@ -26,10 +26,11 @@
// we need an instance of the controller
beforeEach(inject(function(_$log_, $controller) {
$log = _$log_;
- ctrl = $controller('OnosCtrl');
+ var $scope = {};
+ ctrl = $controller('OnosCtrl', { $scope: $scope });
}));
- xit('should report version 1.2.0', function () {
- expect(ctrl.version).toEqual('1.2.0');
+ it('should report version 1.5.0', function () {
+ expect(ctrl.version).toEqual('1.5.0');
});
});
\ No newline at end of file