1
exercism fetch typescript raindrops

raindrops.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
28
29
30
31
32
33
34
35
36
37
38
import Raindrops from './raindrops'

describe('Raindrops', () => {
  const drops: Raindrops = new Raindrops()

  it('converts 1', () => expect(drops.convert(1)).toEqual('1'))

  xit('converts 3', () => expect(drops.convert(3)).toEqual('Pling'))

  xit('converts 5', () => expect(drops.convert(5)).toEqual('Plang'))

  xit('converts 7', () => expect(drops.convert(7)).toEqual('Plong'))

  xit('converts 6', () => expect(drops.convert(6)).toEqual('Pling'))

  xit('converts 9', () => expect(drops.convert(9)).toEqual('Pling'))

  xit('converts 10', () => expect(drops.convert(10)).toEqual('Plang'))

  xit('converts 14', () => expect(drops.convert(14)).toEqual('Plong'))

  xit('converts 15', () => expect(drops.convert(15)).toEqual('PlingPlang'))

  xit('converts 21', () => expect(drops.convert(21)).toEqual('PlingPlong'))

  xit('converts 25', () => expect(drops.convert(25)).toEqual('Plang'))

  xit('converts 35', () => expect(drops.convert(35)).toEqual('PlangPlong'))

  xit('converts 49', () => expect(drops.convert(49)).toEqual('Plong'))

  xit('converts 52', () => expect(drops.convert(52)).toEqual('52'))

  xit('converts 105', () => expect(drops.convert(105)).toEqual('PlingPlangPlong'))

  xit('converts 12121', () => expect(drops.convert(12121)).toEqual('12121'))

})