rwwagner90/ember-math-helpers

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

Summary

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

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

  test('multiplication of multiple arguments works', function (assert) {
    const result = mult([2, 2, 2, 2, 2, 3]);
    assert.strictEqual(result, 96);
  });
});