You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@climate.apache.org by jo...@apache.org on 2014/08/05 19:32:14 UTC

[16/19] git commit: Transition evaluationsettings service tests

Transition evaluationsettings service tests


Project: http://git-wip-us.apache.org/repos/asf/climate/repo
Commit: http://git-wip-us.apache.org/repos/asf/climate/commit/94daf209
Tree: http://git-wip-us.apache.org/repos/asf/climate/tree/94daf209
Diff: http://git-wip-us.apache.org/repos/asf/climate/diff/94daf209

Branch: refs/heads/master
Commit: 94daf209ab122e13aa4ec1055023cf9debddadcd
Parents: bce574b
Author: Michael Joyce <jo...@apache.org>
Authored: Fri Aug 1 13:52:16 2014 -0700
Committer: Michael Joyce <jo...@apache.org>
Committed: Mon Aug 4 15:01:02 2014 -0700

----------------------------------------------------------------------
 .../test/spec/services/evaluationsettings.js             | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/climate/blob/94daf209/ocw-ui/frontend-new/test/spec/services/evaluationsettings.js
----------------------------------------------------------------------
diff --git a/ocw-ui/frontend-new/test/spec/services/evaluationsettings.js b/ocw-ui/frontend-new/test/spec/services/evaluationsettings.js
index 8fb20c2..01fa63b 100644
--- a/ocw-ui/frontend-new/test/spec/services/evaluationsettings.js
+++ b/ocw-ui/frontend-new/test/spec/services/evaluationsettings.js
@@ -30,8 +30,15 @@ describe('Service: evaluationSettings', function () {
     evaluationSettings = _evaluationSettings_;
   }));
 
-  it('should do something', function () {
-    expect(!!evaluationSettings).toBe(true);
+  it('should initialize the evaluationSettings service', function() {
+    inject(function(evaluationSettings) {
+      expect(evaluationSettings).not.toEqual(null);
+    });
   });
 
+  it('should provide a getSettings function', function() {
+    inject(function(evaluationSettings) {
+      expect(evaluationSettings.getSettings()).not.toEqual(null);
+    })
+  })
 });