mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 17:56:25 +00:00
13 lines
256 B
JavaScript
13 lines
256 B
JavaScript
/**
|
|
* @fileoverview Unit test for browser/lib/date-formatter.js
|
|
*/
|
|
const test = require('ava')
|
|
const { formatDate } = require('browser/lib/date-formatter')
|
|
|
|
test(t => {
|
|
t.throws(
|
|
() => formatDate('invalid argument'),
|
|
'Invalid argument.'
|
|
)
|
|
})
|