rwwagner90/ember-math-helpers

View on GitHub
test-app/tests/unit/helpers/add-test.js

Summary

Maintainability
A
0 mins
Test Coverage
import { add } from 'ember-math-helpers/helpers/add';
import { module, test } from 'qunit';

module('Unit | Helper | add', function () {
  test('addition works', function (assert) {
    const result = add([20, 10]);
    assert.strictEqual(result, 30);
  });

  test('addition of multiple arguments works', function (assert) {
    const result = add([1, 2, 3, 4, 5]);
    assert.strictEqual(result, 15);
  });
});