Commit 1db8a6e 1 parent 25ec879 commit 1db8a6e Copy full SHA for 1db8a6e
File tree 1 file changed +8
-10
lines changed
1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -81,23 +81,21 @@ describe("Config Prompt Tests", () => {
81
81
basicOutputPath ,
82
82
] ) ;
83
83
84
- expect ( normalizeLineEndings ( stdout ) ) . toMatchSnapshot ( ) ;
84
+ expect (
85
+ replaceAngleBracket ( normalizeLineEndings ( stdout ) )
86
+ ) . toMatchSnapshot ( ) ;
85
87
86
88
// Ora spinner outputs to stderr by default, we
87
89
expect ( stderr ) . toContain ( "- Validating generated types" ) ;
88
90
expect ( stderr ) . toContain ( "✔ Validating generated types" ) ;
89
91
90
92
expect (
91
- replaceAngleBracket (
92
- normalizeLineEndings (
93
- fs . readFileSync ( basicOutputPath , "utf-8" ) . toString ( )
94
- )
93
+ normalizeLineEndings (
94
+ fs . readFileSync ( basicOutputPath , "utf-8" ) . toString ( )
95
95
)
96
96
) . toEqual (
97
- replaceAngleBracket (
98
- normalizeLineEndings (
99
- fs . readFileSync ( basicSnapshotPath , "utf-8" ) . toString ( )
100
- )
97
+ normalizeLineEndings (
98
+ fs . readFileSync ( basicSnapshotPath , "utf-8" ) . toString ( )
101
99
)
102
100
) ;
103
101
@@ -122,5 +120,5 @@ function normalizeLineEndings(content: string) {
122
120
}
123
121
124
122
function replaceAngleBracket ( content : string ) {
125
- return content . replace ( / ❯ / g, "> " ) ;
123
+ return content . replace ( / > / g, "❯ " ) ;
126
124
}
You can’t perform that action at this time.
0 commit comments