test-app/tests/unit/helpers/div-test.js
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);
});
});