A calm place to write long-form, and publish it to the open social web. skypress.blog/
0

Configure Feed

Select the types of activity you want to include in your feed.

Update lexicon schema-doc + landing-content tests for additive mentions field

+12 -3
+4 -2
src/lib/landing/landing-content.test.ts
··· 21 21 expect( footer ).toMatch( /href=["']\/lexicon["'][^>]*>[\s\S]*?Docs/ ); 22 22 } ); 23 23 24 - it( 'links the future demo publication under a News label', () => { 25 - expect( footer ).toMatch( /href=["']\/@skypress\.blog["'][^>]*>[\s\S]*?News/ ); 24 + it( 'links the SkyPress launch article under a News label', () => { 25 + expect( footer ).toMatch( 26 + /href=["']https:\/\/skypress\.blog\/@skypress\.blog\/its-always-sunny-on-skypress["'][^>]*>[\s\S]*?News/ 27 + ); 26 28 } ); 27 29 28 30 it( 'links the SkyPress source repo on tangled.org with an accessible label and icon', () => {
+8 -1
src/lib/lexicon/schema-doc.test.ts
··· 13 13 14 14 it( 'derives ordered field rows from the schema, with required flags', () => { 15 15 const fields = contentSchemaFields(); 16 - expect( fields.map( ( f ) => f.name ) ).toEqual( [ 'version', 'blocks' ] ); 16 + expect( fields.map( ( f ) => f.name ) ).toEqual( [ 'version', 'blocks', 'mentions' ] ); 17 17 18 18 expect( fields[ 0 ] ).toMatchObject( { 19 19 name: 'version', ··· 28 28 required: true, 29 29 } ); 30 30 expect( fields[ 1 ].description ).toContain( 'block tree' ); 31 + 32 + expect( fields[ 2 ] ).toMatchObject( { 33 + name: 'mentions', 34 + type: 'array', 35 + required: false, 36 + } ); 37 + expect( fields[ 2 ].description.length ).toBeGreaterThan( 0 ); 31 38 } ); 32 39 } );