import {assert} from 'chai';
import R from 'ramda';
import transformHead from '../../src/util/transform-head.js';

describe('#transformHead', () => {
  it('should transform the head of a string', () => {
    assert.equal(transformHead(R.toUpper, 'hello'), 'Hello');
    assert.equal(transformHead(R.toLower, 'Hello'), 'hello');
  });
});

import {assert} from 'chai';
import upperCase from '../../src/util/upper-case.js';
import lowerCase from '../../src/util/lower-case.js';
import transformHead from '../../src/util/transform-head.js';

describe('#transformHead', () => {
  it('should transform the head of a string', () => {
    assert.equal(transformHead(upperCase, 'hello'), 'Hello');
    assert.equal(transformHead(lowerCase, 'Hello'), 'hello');
  });
});

Refactor transformHead test to use custom functions
Refactor transformHead test to use custom functions
