@@ -20,22 +20,22 @@ describe("flattenDocs", () => {
2020 children,
2121 } ) ;
2222
23- it ( "空の配列を渡すと空の結果を返す " , ( ) => {
23+ it ( "should return an empty result when given an empty array " , ( ) => {
2424 const [ flattenedPages , pagePaths ] = flattenDocs ( [ ] ) ;
2525
2626 expect ( flattenedPages ) . toEqual ( [ ] ) ;
2727 expect ( pagePaths ) . toEqual ( [ ] ) ;
2828 } ) ;
2929
30- it ( "子を持たない単一ページを平坦化する " , ( ) => {
30+ it ( "should flatten a single page with no children " , ( ) => {
3131 const page = createMockPage ( "/docs/" , "Documentation" ) ;
3232 const [ flattenedPages , pagePaths ] = flattenDocs ( [ page ] ) ;
3333
3434 expect ( flattenedPages ) . toEqual ( [ page ] ) ;
3535 expect ( pagePaths ) . toEqual ( [ [ page ] ] ) ;
3636 } ) ;
3737
38- it ( "複数の子を持たないページを平坦化する " , ( ) => {
38+ it ( "should flatten multiple pages with no children " , ( ) => {
3939 const page1 = createMockPage ( "/docs/" , "Documentation" ) ;
4040 const page2 = createMockPage ( "/tutorial/" , "Tutorial" ) ;
4141 const [ flattenedPages , pagePaths ] = flattenDocs ( [ page1 , page2 ] ) ;
@@ -44,7 +44,7 @@ describe("flattenDocs", () => {
4444 expect ( pagePaths ) . toEqual ( [ [ page1 ] , [ page2 ] ] ) ;
4545 } ) ;
4646
47- it ( "子を持つページを平坦化する " , ( ) => {
47+ it ( "should flatten a page with children " , ( ) => {
4848 const childPage = createMockPage ( "/docs/tutorial/" , "Tutorial" ) ;
4949 const parentPage = createMockPage ( "/docs/" , "Documentation" , [ childPage ] ) ;
5050 const [ flattenedPages , pagePaths ] = flattenDocs ( [ parentPage ] ) ;
@@ -53,7 +53,7 @@ describe("flattenDocs", () => {
5353 expect ( pagePaths ) . toEqual ( [ [ parentPage ] , [ parentPage , childPage ] ] ) ;
5454 } ) ;
5555
56- it ( "複数階層のページを平坦化する " , ( ) => {
56+ it ( "should flatten pages with multiple levels of children " , ( ) => {
5757 const grandChildPage = createMockPage ( "/docs/tutorial/basics/" , "Basics" ) ;
5858 const childPage = createMockPage ( "/docs/tutorial/" , "Tutorial" , [
5959 grandChildPage ,
@@ -69,7 +69,7 @@ describe("flattenDocs", () => {
6969 ] ) ;
7070 } ) ;
7171
72- it ( "複数の子を持つページを平坦化する " , ( ) => {
72+ it ( "should flatten a page with multiple children " , ( ) => {
7373 const child1 = createMockPage ( "/docs/tutorial/" , "Tutorial" ) ;
7474 const child2 = createMockPage ( "/docs/reference/" , "Reference" ) ;
7575 const parentPage = createMockPage ( "/docs/" , "Documentation" , [
@@ -86,7 +86,7 @@ describe("flattenDocs", () => {
8686 ] ) ;
8787 } ) ;
8888
89- it ( "複雑な階層構造を平坦化する " , ( ) => {
89+ it ( "should flatten a complex hierarchical structure " , ( ) => {
9090 // docs/
9191 // ├── tutorial/
9292 // │ ├── basics/
@@ -130,7 +130,7 @@ describe("flattenDocs", () => {
130130 ] ) ;
131131 } ) ;
132132
133- it ( "複数のルートページを持つ階層構造を平坦化する " , ( ) => {
133+ it ( "should flatten a hierarchical structure with multiple root pages " , ( ) => {
134134 const tutorialChild = createMockPage ( "/tutorial/basics/" , "Basics" ) ;
135135 const tutorial = createMockPage ( "/tutorial/" , "Tutorial" , [ tutorialChild ] ) ;
136136
@@ -148,7 +148,7 @@ describe("flattenDocs", () => {
148148 ] ) ;
149149 } ) ;
150150
151- it ( "パス情報が正しく設定される " , ( ) => {
151+ it ( "should correctly set path information " , ( ) => {
152152 const grandChild = createMockPage ( "/a/b/c/" , "C" ) ;
153153 const child = createMockPage ( "/a/b/" , "B" , [ grandChild ] ) ;
154154 const parent = createMockPage ( "/a/" , "A" , [ child ] ) ;
0 commit comments