rwwagner90/ember-math-helpers

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

Summary

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

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

  test('subtraction of multiple arguments works', function (assert) {
    const result = sub([5, 4, 2, -9]);
    assert.strictEqual(result, 8);
  });
});