{"size": 411, "ext": "js", "max_stars_repo_path": "tests/calc.test.js", "max_stars_repo_name": "nikolay-borzov/template-javascript", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "tests/calc.test.js", "max_issues_repo_name": "nikolay-borzov/template-javascript", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "tests/calc.test.js", "max_forks_repo_name": "nikolay-borzov/template-javascript", "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": 21.6315789474, "max_line_length": 80, "alphanum_fraction": 0.6812652068}
import test from 'ava'
import { complexCalculations } from '../src/calc.js'

test('complexCalculations » should add two numbers', (t) => {
  const expected = 7

  const actual = complexCalculations(3, 4)

  t.is(actual, expected)
})

test('complexCalculations » should return 0 if result is not a number', (t) => {
  const expected = 0

  const actual = complexCalculations(3, '😫')

  t.is(actual, expected)
})
