11 lines
387 B
CoffeeScript
11 lines
387 B
CoffeeScript
import { module, test } from 'qunit'
|
|
|
|
module 'Test helpers | Utility | freeze moment'
|
|
test 'freezeMoment', (assert) ->
|
|
freezeMoment '2016-12-21T14:22:00Z', ->
|
|
assert.equal moment().toISOString().substring(0, 19), '2016-12-21T14:22:00' # check if the specially for this case developed freezeMoment function
|
|
|
|
assert.notEqual moment().toISOString().substring(0, 10), '2016-12-21'
|
|
|
|
|