@@ -36,14 +36,14 @@ describe('cli', () => {
36
36
`./dist/src/index.js -n "testing the project name"`
37
37
) ;
38
38
39
- expect ( stdout ) . toContain ( '# testing the project name' ) ;
39
+ expect ( stdout ) . toContain ( '# [ testing the project name] ' ) ;
40
40
} ) ;
41
41
it ( 'set name (long flag)' , async ( ) => {
42
42
const { stdout } = await execAsync (
43
43
`./dist/src/index.js --name "testing the project name"`
44
44
) ;
45
45
46
- expect ( stdout ) . toContain ( '# testing the project name' ) ;
46
+ expect ( stdout ) . toContain ( '# [ testing the project name] ' ) ;
47
47
} ) ;
48
48
it ( 'set description (short flag)' , async ( ) => {
49
49
const { stdout } = await execAsync (
@@ -74,17 +74,17 @@ describe('cli', () => {
74
74
it ( 'set output (no flag)' , async ( ) => {
75
75
const { stdout } = await execAsync ( `./dist/src/index.js` ) ;
76
76
77
- expect ( stdout ) . toContain ( '# doxdox-cli' ) ;
77
+ expect ( stdout ) . toContain ( '# [ doxdox-cli] ' ) ;
78
78
} ) ;
79
79
it ( 'set output (no directory)' , async ( ) => {
80
80
const { stdout } = await execAsync ( `./dist/src/index.js -o temp.md` ) ;
81
81
82
82
await fs . stat ( './temp.md' ) ;
83
83
84
- expect ( stdout ) . not . toContain ( '# doxdox-cli' ) ;
84
+ expect ( stdout ) . not . toContain ( '# [ doxdox-cli] ' ) ;
85
85
86
86
expect ( await fs . readFile ( './temp.md' , 'utf8' ) ) . toContain (
87
- '# doxdox-cli'
87
+ '# [ doxdox-cli] '
88
88
) ;
89
89
90
90
await fs . unlink ( './temp.md' ) ;
@@ -96,10 +96,10 @@ describe('cli', () => {
96
96
97
97
await fs . stat ( './src/temp.md' ) ;
98
98
99
- expect ( stdout ) . not . toContain ( '# doxdox-cli' ) ;
99
+ expect ( stdout ) . not . toContain ( '# [ doxdox-cli] ' ) ;
100
100
101
101
expect ( await fs . readFile ( './src/temp.md' , 'utf8' ) ) . toContain (
102
- '# doxdox-cli'
102
+ '# [ doxdox-cli] '
103
103
) ;
104
104
105
105
await fs . unlink ( './src/temp.md' ) ;
@@ -111,10 +111,10 @@ describe('cli', () => {
111
111
112
112
await fs . stat ( './temp/temp.md' ) ;
113
113
114
- expect ( stdout ) . not . toContain ( '# doxdox-cli' ) ;
114
+ expect ( stdout ) . not . toContain ( '# [ doxdox-cli] ' ) ;
115
115
116
116
expect ( await fs . readFile ( './temp/temp.md' , 'utf8' ) ) . toContain (
117
- '# doxdox-cli'
117
+ '# [ doxdox-cli] '
118
118
) ;
119
119
120
120
await fs . unlink ( './temp/temp.md' ) ;
@@ -124,10 +124,10 @@ describe('cli', () => {
124
124
125
125
await fs . stat ( './temp.md' ) ;
126
126
127
- expect ( stdout ) . not . toContain ( '# doxdox-cli' ) ;
127
+ expect ( stdout ) . not . toContain ( '# [ doxdox-cli] ' ) ;
128
128
129
129
expect ( await fs . readFile ( './temp.md' , 'utf8' ) ) . toContain (
130
- '# doxdox-cli'
130
+ '# [ doxdox-cli] '
131
131
) ;
132
132
133
133
await fs . unlink ( './temp.md' ) ;
@@ -139,18 +139,18 @@ describe('cli', () => {
139
139
140
140
await fs . stat ( './temp.md' ) ;
141
141
142
- expect ( stdout ) . not . toContain ( '# doxdox-cli' ) ;
142
+ expect ( stdout ) . not . toContain ( '# [ doxdox-cli] ' ) ;
143
143
144
144
expect ( await fs . readFile ( './temp.md' , 'utf8' ) ) . toContain (
145
- '# doxdox-cli'
145
+ '# [ doxdox-cli] '
146
146
) ;
147
147
148
148
await fs . unlink ( './temp.md' ) ;
149
149
} ) ;
150
150
it ( 'set package location (no flag)' , async ( ) => {
151
151
const { stdout } = await execAsync ( `./dist/src/index.js` ) ;
152
152
153
- expect ( stdout ) . toContain ( '# doxdox-cli' ) ;
153
+ expect ( stdout ) . toContain ( '# [ doxdox-cli] ' ) ;
154
154
} ) ;
155
155
it ( 'set package location (short flag)' , async ( ) => {
156
156
const { stdout } = await execAsync (
0 commit comments