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:15 UTC

[17/19] git commit: Transition regionselectparams service tests

Transition regionselectparams service tests


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

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

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


http://git-wip-us.apache.org/repos/asf/climate/blob/459154f4/ocw-ui/frontend-new/test/spec/services/regionselectparams.js
----------------------------------------------------------------------
diff --git a/ocw-ui/frontend-new/test/spec/services/regionselectparams.js b/ocw-ui/frontend-new/test/spec/services/regionselectparams.js
index 2ad9dab..34cfe54 100644
--- a/ocw-ui/frontend-new/test/spec/services/regionselectparams.js
+++ b/ocw-ui/frontend-new/test/spec/services/regionselectparams.js
@@ -30,8 +30,15 @@ describe('Service: regionSelectParams', function () {
     regionSelectParams = _regionSelectParams_;
   }));
 
-  it('should do something', function () {
-    expect(!!regionSelectParams).toBe(true);
+  it('should initialize the regionSelectParams service', function() {
+    inject(function(regionSelectParams) {
+      expect(regionSelectParams).not.toEqual(null);
+    });
   });
 
+  it('should provide the getParameters function', function() {
+    inject(function(regionSelectParams) {
+      expect(regionSelectParams.getParameters()).not.toEqual(null);
+    });
+  });
 });