@@ -20,22 +20,22 @@ describe("flattenDocs", () => {
20
20
children,
21
21
} ) ;
22
22
23
- it ( "空の配列を渡すと空の結果を返す " , ( ) => {
23
+ it ( "should return an empty result when given an empty array " , ( ) => {
24
24
const [ flattenedPages , pagePaths ] = flattenDocs ( [ ] ) ;
25
25
26
26
expect ( flattenedPages ) . toEqual ( [ ] ) ;
27
27
expect ( pagePaths ) . toEqual ( [ ] ) ;
28
28
} ) ;
29
29
30
- it ( "子を持たない単一ページを平坦化する " , ( ) => {
30
+ it ( "should flatten a single page with no children " , ( ) => {
31
31
const page = createMockPage ( "/docs/" , "Documentation" ) ;
32
32
const [ flattenedPages , pagePaths ] = flattenDocs ( [ page ] ) ;
33
33
34
34
expect ( flattenedPages ) . toEqual ( [ page ] ) ;
35
35
expect ( pagePaths ) . toEqual ( [ [ page ] ] ) ;
36
36
} ) ;
37
37
38
- it ( "複数の子を持たないページを平坦化する " , ( ) => {
38
+ it ( "should flatten multiple pages with no children " , ( ) => {
39
39
const page1 = createMockPage ( "/docs/" , "Documentation" ) ;
40
40
const page2 = createMockPage ( "/tutorial/" , "Tutorial" ) ;
41
41
const [ flattenedPages , pagePaths ] = flattenDocs ( [ page1 , page2 ] ) ;
@@ -44,7 +44,7 @@ describe("flattenDocs", () => {
44
44
expect ( pagePaths ) . toEqual ( [ [ page1 ] , [ page2 ] ] ) ;
45
45
} ) ;
46
46
47
- it ( "子を持つページを平坦化する " , ( ) => {
47
+ it ( "should flatten a page with children " , ( ) => {
48
48
const childPage = createMockPage ( "/docs/tutorial/" , "Tutorial" ) ;
49
49
const parentPage = createMockPage ( "/docs/" , "Documentation" , [ childPage ] ) ;
50
50
const [ flattenedPages , pagePaths ] = flattenDocs ( [ parentPage ] ) ;
@@ -53,7 +53,7 @@ describe("flattenDocs", () => {
53
53
expect ( pagePaths ) . toEqual ( [ [ parentPage ] , [ parentPage , childPage ] ] ) ;
54
54
} ) ;
55
55
56
- it ( "複数階層のページを平坦化する " , ( ) => {
56
+ it ( "should flatten pages with multiple levels of children " , ( ) => {
57
57
const grandChildPage = createMockPage ( "/docs/tutorial/basics/" , "Basics" ) ;
58
58
const childPage = createMockPage ( "/docs/tutorial/" , "Tutorial" , [
59
59
grandChildPage ,
@@ -69,7 +69,7 @@ describe("flattenDocs", () => {
69
69
] ) ;
70
70
} ) ;
71
71
72
- it ( "複数の子を持つページを平坦化する " , ( ) => {
72
+ it ( "should flatten a page with multiple children " , ( ) => {
73
73
const child1 = createMockPage ( "/docs/tutorial/" , "Tutorial" ) ;
74
74
const child2 = createMockPage ( "/docs/reference/" , "Reference" ) ;
75
75
const parentPage = createMockPage ( "/docs/" , "Documentation" , [
@@ -86,7 +86,7 @@ describe("flattenDocs", () => {
86
86
] ) ;
87
87
} ) ;
88
88
89
- it ( "複雑な階層構造を平坦化する " , ( ) => {
89
+ it ( "should flatten a complex hierarchical structure " , ( ) => {
90
90
// docs/
91
91
// ├── tutorial/
92
92
// │ ├── basics/
@@ -130,7 +130,7 @@ describe("flattenDocs", () => {
130
130
] ) ;
131
131
} ) ;
132
132
133
- it ( "複数のルートページを持つ階層構造を平坦化する " , ( ) => {
133
+ it ( "should flatten a hierarchical structure with multiple root pages " , ( ) => {
134
134
const tutorialChild = createMockPage ( "/tutorial/basics/" , "Basics" ) ;
135
135
const tutorial = createMockPage ( "/tutorial/" , "Tutorial" , [ tutorialChild ] ) ;
136
136
@@ -148,7 +148,7 @@ describe("flattenDocs", () => {
148
148
] ) ;
149
149
} ) ;
150
150
151
- it ( "パス情報が正しく設定される " , ( ) => {
151
+ it ( "should correctly set path information " , ( ) => {
152
152
const grandChild = createMockPage ( "/a/b/c/" , "C" ) ;
153
153
const child = createMockPage ( "/a/b/" , "B" , [ grandChild ] ) ;
154
154
const parent = createMockPage ( "/a/" , "A" , [ child ] ) ;
0 commit comments