Sha256: f285d7ee9f039c7ac0a3d89d5dcbd1de22de54d726bfc2635c906d306164db40

Contents?: true

Size: 1.29 KB

Versions: 185

Compression:

Stored size: 1.29 KB

Contents

import Raindrops from './raindrops';

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  xtest('converts 12121', () => expect(drops.convert(12121)).toEqual('12121'));
});

Version data entries

185 entries across 185 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/ecmascript/exercises/raindrops/raindrops.spec.js
trackler-2.2.1.179 tracks/ecmascript/exercises/raindrops/raindrops.spec.js
trackler-2.2.1.178 tracks/ecmascript/exercises/raindrops/raindrops.spec.js
trackler-2.2.1.177 tracks/ecmascript/exercises/raindrops/raindrops.spec.js
trackler-2.2.1.176 tracks/ecmascript/exercises/raindrops/raindrops.spec.js
trackler-2.2.1.175 tracks/ecmascript/exercises/raindrops/raindrops.spec.js
trackler-2.2.1.174 tracks/ecmascript/exercises/raindrops/raindrops.spec.js
trackler-2.2.1.173 tracks/ecmascript/exercises/raindrops/raindrops.spec.js
trackler-2.2.1.172 tracks/ecmascript/exercises/raindrops/raindrops.spec.js
trackler-2.2.1.171 tracks/ecmascript/exercises/raindrops/raindrops.spec.js
trackler-2.2.1.170 tracks/ecmascript/exercises/raindrops/raindrops.spec.js
trackler-2.2.1.169 tracks/ecmascript/exercises/raindrops/raindrops.spec.js
trackler-2.2.1.167 tracks/ecmascript/exercises/raindrops/raindrops.spec.js
trackler-2.2.1.166 tracks/ecmascript/exercises/raindrops/raindrops.spec.js
trackler-2.2.1.165 tracks/ecmascript/exercises/raindrops/raindrops.spec.js
trackler-2.2.1.164 tracks/ecmascript/exercises/raindrops/raindrops.spec.js
trackler-2.2.1.163 tracks/ecmascript/exercises/raindrops/raindrops.spec.js
trackler-2.2.1.162 tracks/ecmascript/exercises/raindrops/raindrops.spec.js
trackler-2.2.1.161 tracks/ecmascript/exercises/raindrops/raindrops.spec.js
trackler-2.2.1.160 tracks/ecmascript/exercises/raindrops/raindrops.spec.js