Index: Tools/GardeningServer/ui/test/ct-last-updated-tests.html |
diff --git a/Tools/GardeningServer/ui/test/ct-last-updated-tests.html b/Tools/GardeningServer/ui/test/ct-last-updated-tests.html |
index 8f56d90d5b0b53f77802d4642063cab0d929336a..95ee798a3b0fae6dbaa967e351eccf844a06f39c 100644 |
--- a/Tools/GardeningServer/ui/test/ct-last-updated-tests.html |
+++ b/Tools/GardeningServer/ui/test/ct-last-updated-tests.html |
@@ -24,7 +24,7 @@ describe('ct-last-updated', function() { |
it('should have correct text', function() { |
var expected = 'Updated 5 min ago @ ' + lastUpdated.date.getHours() + ':' + |
- lastUpdated.date.getMinutes(); |
+ lastUpdated.date.getMinutes().toString().padLeft(2, '0'); |
ojan
2014/08/14 01:26:48
Can you modify this test to give repeatable result
|
assert.include(lastUpdated.shadowRoot.innerHTML.trim(), expected); |
}); |
}); |