cat
/
rect.run
/
clone
ssh
copy
https
copy
a daily shikaku puzzle for phones: one seeded puzzle per date, solved by dragging rectangles
code
commits
branches
reviews
insights
main
all branches
rect.run
/
tests
/
lib
/
site
/
network_test.ts
history
network_test.ts
292B
blame
history
wrap lines
copy
1
import
{ assertEquals }
from
"@std/assert"
;
2
3
import
{ getOfflineBadgeLabel }
from
"@/lib/site/network.ts"
;
4
5
Deno
.
test
(
"getOfflineBadgeLabel only shows a badge when offline"
,
() =>
{
6
assertEquals
(
getOfflineBadgeLabel
(
true
),
null
);
7
assertEquals
(
getOfflineBadgeLabel
(
false
),
"Offline"
);
8
});