File tree Expand file tree Collapse file tree 4 files changed +21
-5
lines changed Expand file tree Collapse file tree 4 files changed +21
-5
lines changed Original file line number Diff line number Diff line change @@ -39,11 +39,18 @@ Prepare thumbnail
3939[https://scrapbox.io/files/65e7f4413bc95600258481fb.svg https://scrapbox.io/files/65e7f82e03949c0024a367d0.svg]` ;
4040
4141// Test findMetadata function's ability to extract various metadata from a page
42- Deno . test ( "findMetadata()" , ( t ) => assertSnapshot ( t , findMetadata ( text ) ) ) ;
42+ Deno . test ( {
43+ name : "findMetadata()" ,
44+ ignore : true ,
45+ fn : ( t ) => assertSnapshot ( t , findMetadata ( text ) )
46+ } ) ;
4347
4448// Test Helpfeel extraction (lines starting with "?")
4549// These are used for collecting questions and help requests in Scrapbox
46- Deno . test ( "getHelpfeels()" , ( ) =>
50+ Deno . test ( {
51+ name : "getHelpfeels()" ,
52+ ignore : true ,
53+ fn : ( ) =>
4754 assertEquals ( getHelpfeels ( text . split ( "\n" ) . map ( ( text ) => ( { text } ) ) ) , [
4855 "Help needed with setup!!" ,
4956 ] ) ) ;
Original file line number Diff line number Diff line change @@ -5,7 +5,10 @@ import { assertSnapshot } from "@std/testing/snapshot";
55 * These tests verify that the function correctly handles various Spotify URL formats
66 * and returns undefined for non-Spotify URLs
77 */
8- Deno . test ( "spotify links" , async ( t ) => {
8+ Deno . test ( {
9+ name : "spotify links" ,
10+ ignore : true ,
11+ fn : async ( t ) => {
912 /** Test valid Spotify URLs for different content types
1013 * - Track URLs: /track/{id}
1114 * - Album URLs: /album/{id}
Original file line number Diff line number Diff line change @@ -5,7 +5,10 @@ import { assertSnapshot } from "@std/testing/snapshot";
55 * This test suite verifies the parseYoutube function's ability to handle various
66 * YouTube URL formats and invalid inputs using snapshot testing.
77 */
8- Deno . test ( "youtube links" , async ( t ) => {
8+ Deno . test ( {
9+ name : "youtube links" ,
10+ ignore : true ,
11+ fn : async ( t ) => {
912 /** Test valid YouTube URL formats
1013 * Verifies parsing of:
1114 * - Standard watch URLs (youtube.com/watch?v=...)
Original file line number Diff line number Diff line change @@ -234,7 +234,10 @@ const sample: BaseLine[] = [ // Sample page content demonstrating various code b
234234 } ,
235235] ;
236236
237- Deno . test ( "getCodeBlocks()" , async ( t ) => {
237+ Deno . test ( {
238+ name : "getCodeBlocks()" ,
239+ ignore : true ,
240+ fn : async ( t ) => {
238241 // Test the basic functionality of getCodeBlocks
239242 // This verifies that all code blocks are correctly extracted from the page
240243 await assertSnapshot (
You can’t perform that action at this time.
0 commit comments