rwwagner90/ember-math-helpers

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

Summary

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

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

  test('modulus of multiple arguments works', function (assert) {
    const result = mod([10, 7, 2]);
    assert.strictEqual(result, 1);
  });
});