mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 01:36:22 +00:00
Rename getLastUpdated() to formatDate()
This commit is contained in:
@@ -2,11 +2,11 @@
|
||||
* @fileoverview Unit test for browser/lib/date-formatter.js
|
||||
*/
|
||||
const test = require('ava')
|
||||
const { getLastUpdated } = require('browser/lib/date-formatter')
|
||||
const { formatDate } = require('browser/lib/date-formatter')
|
||||
|
||||
test(t => {
|
||||
t.throws(
|
||||
() => getLastUpdated('invalid argument'),
|
||||
() => formatDate('invalid argument'),
|
||||
'Invalid argument.'
|
||||
)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user