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/25 00:59:09 UTC
svn commit: r1496275 -
/incubator/climate/trunk/rcmet/src/main/ui/test/unit/filters/ISODateToMiddleEndianTest.js
Author: joyce
Date: Mon Jun 24 22:59:09 2013
New Revision: 1496275
URL: http://svn.apache.org/r1496275
Log:
CLIMATE-153 progress - Add ISO Date only test
- Add test to check if filter can convert an ISO date without a time
stamp to the U.S. format.
Modified:
incubator/climate/trunk/rcmet/src/main/ui/test/unit/filters/ISODateToMiddleEndianTest.js
Modified: incubator/climate/trunk/rcmet/src/main/ui/test/unit/filters/ISODateToMiddleEndianTest.js
URL: http://svn.apache.org/viewvc/incubator/climate/trunk/rcmet/src/main/ui/test/unit/filters/ISODateToMiddleEndianTest.js?rev=1496275&r1=1496274&r2=1496275&view=diff
==============================================================================
--- incubator/climate/trunk/rcmet/src/main/ui/test/unit/filters/ISODateToMiddleEndianTest.js (original)
+++ incubator/climate/trunk/rcmet/src/main/ui/test/unit/filters/ISODateToMiddleEndianTest.js Mon Jun 24 22:59:09 2013
@@ -35,5 +35,12 @@ describe('OCW Filters', function() {
expect(filter('2012-01-02 00:00:00')).toEqual('01/02/2012');
});
});
+
+ it('should replace the ISO Date/Time stamp', function() {
+ inject(function($filter) {
+ var filter = $filter('ISODateToMiddleEndian');
+ expect(filter('2012-01-02')).toEqual('01/02/2012');
+ });
+ });
});
});