|
@@ -18,7 +18,7 @@ describe('dayPopoverFormat', function() {
|
|
|
dayPopoverFormat: { month: 'long', day: 'numeric' }
|
|
dayPopoverFormat: { month: 'long', day: 'numeric' }
|
|
|
})
|
|
})
|
|
|
getMoreEl().simulate('click')
|
|
getMoreEl().simulate('click')
|
|
|
- expect(getMorePopoverTitle()).toHaveText('July 29')
|
|
|
|
|
|
|
+ expect(getMorePopoverTitle()).toBe('July 29')
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
it('is affected by the current locale when the value is default', function() {
|
|
it('is affected by the current locale when the value is default', function() {
|
|
@@ -26,7 +26,7 @@ describe('dayPopoverFormat', function() {
|
|
|
locale: 'fr'
|
|
locale: 'fr'
|
|
|
})
|
|
})
|
|
|
getMoreEl().simulate('click')
|
|
getMoreEl().simulate('click')
|
|
|
- expect(getMorePopoverTitle()).toHaveText('29 juillet 2014')
|
|
|
|
|
|
|
+ expect(getMorePopoverTitle()).toBe('29 juillet 2014')
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
it('still maintains the same format when explicitly set, and there is a locale', function() {
|
|
it('still maintains the same format when explicitly set, and there is a locale', function() {
|
|
@@ -35,7 +35,7 @@ describe('dayPopoverFormat', function() {
|
|
|
dayPopoverFormat: { year: 'numeric' }
|
|
dayPopoverFormat: { year: 'numeric' }
|
|
|
})
|
|
})
|
|
|
getMoreEl().simulate('click')
|
|
getMoreEl().simulate('click')
|
|
|
- expect(getMorePopoverTitle()).toHaveText('2014')
|
|
|
|
|
|
|
+ expect(getMorePopoverTitle()).toBe('2014')
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
})
|
|
})
|