File tree Expand file tree Collapse file tree 1 file changed +0
-24
lines changed
Expand file tree Collapse file tree 1 file changed +0
-24
lines changed Original file line number Diff line number Diff line change 440440 // Add a random version to prevent caching
441441 console . log ( 'Loading page editor v' + Math . random ( ) )
442442
443- /* ---------------------------------------------------------------- */
444- /* - TEST FUNCTIONS - */
445- /* ---------------------------------------------------------------- */
446- // Test the filename conversion
447- function testFilenameConversion ( ) {
448- const testCases = [
449- 'project/test' ,
450- 'foo/bar/baz' ,
451- 'test-page' ,
452- 'another_test'
453- ]
454-
455- console . log ( '======= TESTING FILENAME CONVERSION =======' )
456- testCases . forEach ( test => {
457- console . log (
458- `Original: "${ test } " -> Converted: "${ test . replace ( / \/ / g, '___' ) } "`
459- )
460- } )
461- console . log ( '==========================================' )
462- }
463-
464- // Run the test immediately
465- testFilenameConversion ( )
466-
467443 /* ---------------------------------------------------------------- */
468444 /* - IMPORTS & SETUP - */
469445 /* ---------------------------------------------------------------- */
You can’t perform that action at this time.
0 commit comments