Files
ember-cli-dunlop/tests/unit/utils/get-max-suffix-test.coffee
2017-12-21 11:42:41 +01:00

14 lines
452 B
CoffeeScript

import getMaxSuffix from 'ember-cli-dunlop/utils/get-max-suffix'
import { module, test } from 'qunit'
module 'Unit | Utility | get max suffix'
# Replace this with your real tests.
test 'it works as module', (assert) ->
result = getMaxSuffix(["Asdzo-AAV2-4", "Asdzo-AAV2", "Asdzo-AAV3"])
assert.equal result, 4
test 'it works globally', (assert) ->
result = get_max_suffix(["Asdzo-AAV2-4", "Asdzo-AAV2", "Asdzo-AAV3"])
assert.equal result, 4