Ghost
New
pippinmole
/
ghost
public
forked from
ghost/ghost
Source code of Ghost - On Ghost
Star
0
Fork
0
Code
Issues
0
Pull requests
0
main
76
branches
Go to file
t
Code
ghost
apps
web
src
app
changelog
entries.test.ts
web: add a changelog page, prefilled from the history since September 25
27c8c27
5 days ago
10 lines · 314 B
1
import
{
describe
,
expect
,
it
}
from
"
bun:test
"
;
2
3
import
{
CHANGELOG
}
4
5
describe
(
"
changelog
"
,
()
6
it
(
"
lists entries newest first, so the first one dates the page
"
,
7
const
dates
=
8
expect
(
dates
)
.
toEqual
9
}
)
;
10
}
)
;
from
"
./entries
"
;
=>
{
()
=>
{
CHANGELOG
.
map
(
(
{
date
}
)
=>
date
)
;
(
dates
.
toSorted
()
.
reverse
())
;