rwwagner90/ember-math-helpers

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

Summary

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

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

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