Skip to content

Commit ef6e7b3

Browse files
committed
Workarounds for e2e test
1 parent 68cea6c commit ef6e7b3

File tree

3 files changed

+19
-17
lines changed

3 files changed

+19
-17
lines changed

renamify-core/src/case_model.rs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,20 @@ use ts_rs::TS;
66
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Serialize, Deserialize, TS)]
77
#[ts(export)]
88
pub enum Style {
9-
Snake, // renamify_style
10-
Kebab, // renamify-style
11-
Camel, // renamifyStyle
12-
Pascal, // RenamifyStyle
13-
ScreamingSnake, // RENAMIFY_STYLE
14-
Title, // Renamify Style
15-
Train, // Renamify-Style
16-
ScreamingTrain, // RENAMIFY-STYLE
17-
Dot, // renamify.style
18-
LowerFlat, // renamifystyle
19-
UpperFlat, // RENAMIFYSTYLE
20-
Sentence, // Renamify style
21-
LowerSentence, // renamify style
22-
UpperSentence, // RENAMIFY STYLE
9+
Snake, // snake_case
10+
Kebab, // kebab-case
11+
Camel, // camelCase
12+
Pascal, // PascalCase
13+
ScreamingSnake, // SCREAMING_SNAKE_CASE
14+
Title, // Title Case
15+
Train, // Train-Case
16+
ScreamingTrain, // SCREAMING-TRAIN-CASE
17+
Dot, // dot.case
18+
LowerFlat, // lowerflatcase
19+
UpperFlat, // UPPERFLATCASE
20+
Sentence, // Sentence case
21+
LowerSentence, // lower sentence case
22+
UpperSentence, // UPPER SENTENCE CASE
2323
}
2424

2525
impl Style {

renamify-core/src/output.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ impl OutputFormatter for ApplyResult {
210210
output.push_str("✓ Changes committed to git\n");
211211
}
212212

213-
write!(output, "Undo with: renamify undo {}", self.plan_id).unwrap();
213+
writeln!(output, "Undo with: renamify undo {}", self.plan_id).unwrap();
214214

215215
output
216216
}
@@ -420,7 +420,7 @@ impl OutputFormatter for RenameResult {
420420
output.push_str("✓ Changes committed to git\n");
421421
}
422422

423-
write!(output, "Undo with: renamify undo {}", self.plan_id).unwrap();
423+
writeln!(output, "Undo with: renamify undo {}", self.plan_id).unwrap();
424424

425425
output
426426
}

renamify-core/tests/leading_dot_pattern_test.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ fn test_gitignore_with_leading_dot_gets_renamed() {
1010
// Create a .gitignore with a pattern that has a leading dot
1111
fs::write(
1212
repo_path.join(".gitignore"),
13-
".renamify/\nrenamify-core/bindings/\n",
13+
r#".renamify/
14+
renamify-core/bindings/
15+
"#,
1416
)
1517
.unwrap();
1618

0 commit comments

Comments
 (0)