14 lines
452 B
CoffeeScript
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
|