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 2013/06/24 15:30:58 UTC
svn commit: r1496042 -
/incubator/climate/trunk/rcmet/src/main/ui/test/unit/services/SelectedDatasetInfomationTest.js
Author: joyce
Date: Mon Jun 24 13:30:58 2013
New Revision: 1496042
URL: http://svn.apache.org/r1496042
Log:
CLIMATE-148 progress - Add addDataset test
Modified:
incubator/climate/trunk/rcmet/src/main/ui/test/unit/services/SelectedDatasetInfomationTest.js
Modified: incubator/climate/trunk/rcmet/src/main/ui/test/unit/services/SelectedDatasetInfomationTest.js
URL: http://svn.apache.org/viewvc/incubator/climate/trunk/rcmet/src/main/ui/test/unit/services/SelectedDatasetInfomationTest.js?rev=1496042&r1=1496041&r2=1496042&view=diff
==============================================================================
--- incubator/climate/trunk/rcmet/src/main/ui/test/unit/services/SelectedDatasetInfomationTest.js (original)
+++ incubator/climate/trunk/rcmet/src/main/ui/test/unit/services/SelectedDatasetInfomationTest.js Mon Jun 24 13:30:58 2013
@@ -42,6 +42,13 @@ describe('OCW Services', function() {
expect(selectedDatasetInformation.getDatasetCount()).toEqual(0);
});
});
+
+ it('should provide the addDataset function', function() {
+ inject(function(selectedDatasetInformation) {
+ selectedDatasetInformation.addDataset({});
+ expect(selectedDatasetInformation.getDatasetCount()).toEqual(1);
+ });
+ });
});
});