climate-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject svn commit: r1496274 - /incubator/climate/trunk/rcmet/src/main/ui/test/unit/filters/ISODateToMiddleEndianTest.js
Date Mon, 24 Jun 2013 22:59:05 GMT
Author: joyce
Date: Mon Jun 24 22:59:04 2013
New Revision: 1496274

URL: http://svn.apache.org/r1496274
Log:
CLIMATE-153 progress - Add modified ISO date format test

- Add test checking that the filter can handle a modified ISO date of
  the form YYYY-MM-DD 00:00:00.

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=1496274&r1=1496273&r2=1496274&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:04 2013
@@ -28,5 +28,12 @@ describe('OCW Filters', function() {
 				expect(filter('2012-01-02T00: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 00:00:00')).toEqual('01/02/2012');
+			});
+		});
 	});
 });



Mime
View raw message