1- // The sign-in page carries the Profullstack footer (webring row + badges), from
2- // the template bundled in the pinned package only: nothing is fetched at runtime.
1+ // The sign-in page carries the shared Profullstack footer (webring row + square badges)
2+ // from the package's bundled template only: nothing is fetched at runtime.
33import assert from "node:assert/strict" ;
44import test from "node:test" ;
55import { readFileSync } from "node:fs" ;
66
77import * as ringFooterModule from "../src/lib/ring-footer.mjs" ;
88
9- test ( "the bundled footer links the ring and both badges for app.logicsrc.com" , ( ) => {
9+ test ( "the shared footer links the ring and both square badges for app.logicsrc.com" , ( ) => {
1010 const html = ringFooterModule . ringFooter ( ) ;
1111 assert . match ( html , / r s s a m p l i f i e r \. c o m \/ r i n g \/ p r o f u l l s t a c k / ) ;
12- assert . match ( html , / b u i l t \. i n d i e \. p i t \. w o r l d / ) ;
13- assert . match ( html , / p w a m a r t \. c o m \/ f o r \. s v g \? s i t e = h t t p s % 3 A % 2 F % 2 F a p p \. l o g i c s r c \. c o m % 2 F | p w a m a r t \. c o m \/ f o r \. s v g \? s i t e = h t t p s : \/ \/ a p p \. l o g i c s r c \. c o m \/ / ) ;
12+ assert . match ( html , / h r e f = " h t t p s : \/ \/ b u i l t \. i n d i e \. p i t \. w o r l d \/ f o r \? s i t e = h t t p s : \/ \/ a p p \. l o g i c s r c \. c o m \/ / ) ;
13+ assert . match ( html , / s r c = " h t t p s : \/ \/ l o g i c s r c \. c o m \/ o p e n i c o n \/ s e t \/ h q \/ s v g \/ b u i l t - i n d i e \. s v g " / ) ;
14+ assert . match ( html , / h r e f = " h t t p s : \/ \/ p w a m a r t \. c o m \/ f o r \? s i t e = h t t p s : \/ \/ a p p \. l o g i c s r c \. c o m \/ / ) ;
15+ assert . match ( html , / s r c = " h t t p s : \/ \/ l o g i c s r c \. c o m \/ o p e n i c o n \/ s e t \/ h q \/ s v g \/ p w a m a r t \. s v g " / ) ;
16+ assert . match ( html , / p f s - f o o t e r _ _ b a d g e - - p u b l i s h e r i m g \{ w i d t h : 3 2 p x ; h e i g h t : 3 2 p x / ) ;
1417} ) ;
1518
1619test ( "the footer cannot be swapped at runtime (no CDN refresh)" , ( ) => {
@@ -20,7 +23,7 @@ test("the footer cannot be swapped at runtime (no CDN refresh)", () => {
2023 assert . doesNotMatch ( src , / f o o t e r H t m l \( / ) ;
2124} ) ;
2225
23- test ( "the footer package is pinned to an exact version " , ( ) => {
26+ test ( "the footer package follows the shared latest release " , ( ) => {
2427 const pkg = JSON . parse ( readFileSync ( new URL ( "../package.json" , import . meta. url ) , "utf8" ) ) ;
25- assert . match ( pkg . dependencies [ "@profullstack/footer" ] , / ^ \d + \. \d + \. \d + $ / ) ;
28+ assert . equal ( pkg . dependencies [ "@profullstack/footer" ] , "latest" ) ;
2629} ) ;
0 commit comments