bootstrap4.js 755 B

123456789101112131415161718192021222324252627282930313233
  1. describe('bootstrap4 theme', function() {
  2. pushOptions({ themeSystem: 'bootstrap4' })
  3. describe('fa', function() {
  4. pushOptions({
  5. header: { left: '', center: '', right: 'next' }
  6. })
  7. it('renders default', function() {
  8. initCalendar()
  9. expect($('.fa')).toHaveClass('fa-chevron-right')
  10. })
  11. it('renders a customized icon', function() {
  12. initCalendar({
  13. bootstrapFontAwesome: {
  14. next: 'asdf'
  15. }
  16. })
  17. expect($('.fa')).toHaveClass('fa-asdf')
  18. })
  19. it('renders text when specified as false', function() {
  20. initCalendar({
  21. bootstrapFontAwesome: false
  22. })
  23. expect($('.fa')).not.toBeInDOM()
  24. expect($('.fc-next-button')).toHaveText('next')
  25. })
  26. })
  27. })