climate-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject [17/19] git commit: Transition regionselectparams service tests
Date Tue, 05 Aug 2014 17:32:15 GMT
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 <joyce@apache.org>
Authored: Fri Aug 1 13:52:34 2014 -0700
Committer: Michael Joyce <joyce@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);
+    });
+  });
 });


Mime
View raw message