File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,15 +11,17 @@ function readProjectFile(relativePath) {
1111 return fs . readFileSync ( path . join ( projectRoot , relativePath ) , 'utf8' ) ;
1212}
1313
14- test ( 'README OpenClaw state diagram includes the documented runtime config file ' , ( ) => {
14+ test ( 'README Architecture diagram includes the documented config files ' , ( ) => {
1515 const readme = readProjectFile ( 'README.md' ) ;
1616 const readmeZh = readProjectFile ( 'README.zh.md' ) ;
17- assert . match (
18- readme ,
19- / O P E N C L A W \[ " ~ \/ \. o p e n c l a w \/ \* \. j s o n 5 \+ ~ \/ \. o p e n c l a w \/ o p e n c l a w \. j s o n \+ w o r k s p a c e \/ A G E N T S \. m d " \] /
20- ) ;
21- assert . match (
22- readmeZh ,
23- / O P E N C L A W \[ " ~ \/ \. o p e n c l a w \/ \* \. j s o n 5 \+ ~ \/ \. o p e n c l a w \/ o p e n c l a w \. j s o n \+ w o r k s p a c e \/ A G E N T S \. m d " \] /
24- ) ;
17+
18+ // 验证 README.md 中的架构图节点
19+ assert . match ( readme , / C l a w D i r \[ ~ \/ \. o p e n c l a w \] / ) ;
20+ assert . match ( readme , / C l a u d e D i r \[ ~ \/ \. c l a u d e \] / ) ;
21+ assert . match ( readme , / C o d e x D i r \[ ~ \/ \. c o d e x \] / ) ;
22+
23+ // 验证 README.zh.md 中的架构图节点
24+ assert . match ( readmeZh , / C l a w D i r \[ ~ \/ \. o p e n c l a w \] / ) ;
25+ assert . match ( readmeZh , / C l a u d e D i r \[ ~ \/ \. c l a u d e \] / ) ;
26+ assert . match ( readmeZh , / C o d e x D i r \[ ~ \/ \. c o d e x \] / ) ;
2527} ) ;
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ let failures = 0;
6363for ( const { name, fn } of tests ) {
6464 try {
6565 await fn ( ) ;
66- console . log ( `\u2713 ${ name } ` ) ;
66+ // console.log(`\u2713 ${name}`);
6767 } catch ( err ) {
6868 failures += 1 ;
6969 console . error ( `\u2717 ${ name } ` ) ;
You can’t perform that action at this time.
0 commit comments