Upstream spencermountain/spacetime state of the touched files before b6fbec9c97
This commit is contained in:
1 parent
d48b259893
commit
fb5ecec15c
3 files changed
+159
No files matched your search
@@ -0,0 +1,25 @@
|
||||
import test from 'tape'
|
||||
import spacetime from '../_lib/index.js'
|
||||
|
||||
test('titlecase', (t) => {
|
||||
const arr = [
|
||||
'Africa/Dar_es_Salaam',
|
||||
'Africa/Porto-Novo',
|
||||
'America/Blanc-Sablon',
|
||||
'America/Port-au-Prince',
|
||||
'America/Port_of_Spain',
|
||||
'Europe/Isle_of_Man',
|
||||
'Antarctica/DumontDUrville',
|
||||
'Antarctica/McMurdo',
|
||||
'Asia/Ust-Nera',
|
||||
'Europe/Zagreb',
|
||||
'America/Bahia_Banderas',
|
||||
'Asia/Kuching',
|
||||
'Etc/GMT+7',
|
||||
]
|
||||
arr.forEach(tz => {
|
||||
const s = spacetime.now(tz)
|
||||
t.equal(s.timezone().name, tz, tz)
|
||||
})
|
||||
t.end()
|
||||
})
|
||||
Reference in new issue
Block a user