openvibers/openvibe.games Commits
Games: the home page description fits a search result (155 characters) (#82)
Changes
@@@ -7,7 +7,7 @@<title>OpenVibe.Games — browser games on the OpenVibe network</title><metaname="description"-- content="The games arm of the OpenVibe network. Play Scraplandia, multiplayer survival-building in Scrap City; Salvage Rush, 90-second scrap-collecting rounds with a leaderboard; or Vibe Heroes, an idle hero collector for your phone. All in your browser with no download."++ content="Play Scraplandia, Salvage Rush and Vibe Heroes in your browser: survival-building together, 90-second scrap rounds and an idle hero collector. No download."/><!-- The OpenVibe Frame: the user's theme before first paint, then navbar + footer. --><!-- Deferred: a slow or unreachable openvibe.network never holds the first paint (the inline colours above cover it). -->@@@ -17,6 +17,13 @@ describe('page icon', () => {expect(html).toContain('<link rel="icon" type="image/svg+xml" href="/favicon.svg" />')})++ it('the home page description fits a search result (at most 160 characters)', () => {++ const html = readFileSync(client('index.html'), 'utf8')++ const d = /name="description"\s+content="([^"]*)"/.exec(html)?.[1] ?? ''++ expect(d.length).toBeGreaterThanOrEqual(50)++ expect(d.length).toBeLessThanOrEqual(160)++ })++it('public/favicon.svg exists and is an SVG', () => {expect(existsSync(client('public/favicon.svg'))).toBe(true)expect(readFileSync(client('public/favicon.svg'), 'utf8')).toMatch(
@@ -7,7 +7,7 @@
@@ -7,7 +7,7 @@
<title>OpenVibe.Games — browser games on the OpenVibe network</title>
<title>OpenVibe.Games — browser games on the OpenVibe network</title>
<meta
<meta
name="description"
name="description"
- content="The games arm of the OpenVibe network. Play Scraplandia, multiplayer survival-building in Scrap City; Salvage Rush, 90-second scrap-collecting rounds with a leaderboard; or Vibe Heroes, an idle hero collector for your phone. All in your browser with no download."
+ content="Play Scraplandia, Salvage Rush and Vibe Heroes in your browser: survival-building together, 90-second scrap rounds and an idle hero collector. No download."
/>
/>
<!-- The OpenVibe Frame: the user's theme before first paint, then navbar + footer. -->
<!-- The OpenVibe Frame: the user's theme before first paint, then navbar + footer. -->
<!-- Deferred: a slow or unreachable openvibe.network never holds the first paint (the inline colours above cover it). -->
<!-- Deferred: a slow or unreachable openvibe.network never holds the first paint (the inline colours above cover it). -->
@@ -17,6 +17,13 @@ describe('page icon', () => {
@@ -17,6 +17,13 @@ describe('page icon', () => {
expect(html).toContain('<link rel="icon" type="image/svg+xml" href="/favicon.svg" />')
expect(html).toContain('<link rel="icon" type="image/svg+xml" href="/favicon.svg" />')
})
})
+ it('the home page description fits a search result (at most 160 characters)', () => {
+ const html = readFileSync(client('index.html'), 'utf8')
+ const d = /name="description"\s+content="([^"]*)"/.exec(html)?.[1] ?? ''
+ expect(d.length).toBeGreaterThanOrEqual(50)
+ expect(d.length).toBeLessThanOrEqual(160)
+ })
+
it('public/favicon.svg exists and is an SVG', () => {
it('public/favicon.svg exists and is an SVG', () => {
expect(existsSync(client('public/favicon.svg'))).toBe(true)
expect(existsSync(client('public/favicon.svg'))).toBe(true)
expect(readFileSync(client('public/favicon.svg'), 'utf8')).toMatch(
expect(readFileSync(client('public/favicon.svg'), 'utf8')).toMatch(