1
exercism fetch typescript acronym

acronym.test.ts

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import Acronym from './acronym'

describe('Acronym are produced from', () => {
  it('title cased phrases', () => {
    expect(Acronym.parse('Portable Network Graphics')).toEqual('PNG')
  })

  xit('other title cased phrases', () => {
    expect(Acronym.parse('Ruby on Rails')).toEqual('ROR')
  })

  xit('inconsistently cased phrases', () => {
    expect(Acronym.parse('HyperText Markup Language')).toEqual('HTML')
  })

  xit('phrases with punctuation', () => {
    expect(Acronym.parse('First In, First Out')).toEqual('FIFO')
  })

  xit('other phrases with punctuation', () => {
    expect(Acronym.parse('PHP: Hypertext Preprocessor')).toEqual('PHP')
  })

  xit('phrases with punctuation and sentence casing', () => {
    expect(Acronym.parse('Complementary metal-oxide semiconductor')).toEqual('CMOS')
  })
})