{"size": 522, "ext": "js", "max_stars_repo_path": "src/api/components/echo/reverseTextService.test.js", "max_stars_repo_name": "ErickRuano/toolbox-code-challenge", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/api/components/echo/reverseTextService.test.js", "max_issues_repo_name": "ErickRuano/toolbox-code-challenge", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/api/components/echo/reverseTextService.test.js", "max_forks_repo_name": "ErickRuano/toolbox-code-challenge", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 27.4736842105, "max_line_length": 76, "alphanum_fraction": 0.6053639847}
const assert = require('chai').assert
const reverseText = require('./reverseTextService')

describe('reverseText', () => {
  it('should return "olleh', () => {
    const result = reverseText('hello')
    assert.equal(result, 'olleh')
  })

  it('should return a string', () => {
    const result = reverseText('hello')
    assert.typeOf(result, 'String')
  })

  it('should return an invalid argument type error', () => {
    assert.throws(() => { reverseText(0) }, Error, 'Invalid argument type')
  })
})
