acronym.test.ts 769 B

123456789101112131415161718192021222324252627
  1. import { parse } from './acronym'
  2. describe('Acronym are produced from', () => {
  3. xit('title cased phrases', () => {
  4. expect(parse('Portable Network Graphics')).toEqual('PNG')
  5. })
  6. xit('other title cased phrases', () => {
  7. expect(parse('Ruby on Rails')).toEqual('ROR')
  8. })
  9. it('inconsistently cased phrases', () => {
  10. expect(parse('HyperText Markup Language')).toEqual('HTML')
  11. })
  12. xit('phrases with punctuation', () => {
  13. expect(parse('First In, First Out')).toEqual('FIFO')
  14. })
  15. xit('other phrases with punctuation', () => {
  16. expect(parse('PHP: Hypertext Preprocessor')).toEqual('PHP')
  17. })
  18. xit('phrases with punctuation and sentence casing', () => {
  19. expect(parse('Complementary metal-oxide semiconductor')).toEqual('CMOS')
  20. })
  21. })