Skip to content

Commit

Permalink
fix: Cargo test
Browse files Browse the repository at this point in the history
  • Loading branch information
Dustin Blackman committed Dec 31, 2023
1 parent dfabd4f commit c5be6f8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/domain/services/bubble_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ fn create_lines(
text: &str,
) -> Result<String> {
Config::set(ConfigKey::Username, "testuser");
Config::set(ConfigKey::Model, "codellama:latest");
Config::set(ConfigKey::Model, "model-1");

let message = Message::new(author, text);
let theme = Themes::get("base16-seti", "")?;
Expand Down Expand Up @@ -84,7 +84,7 @@ fn print_numbers() {
let lines_str = create_lines(Author::Model, BubbleAlignment::Left, 0, text)?;

insta::assert_snapshot!(lines_str, @r###"
codellama:latest──────────────╮
model-1───────────────────────╮
│ Here's how to print in Rust. │
│ │
│ ```rust (1) │
Expand Down Expand Up @@ -113,9 +113,9 @@ fn it_creates_author_model_text_code_multiple_blocks() -> Result<()> {
fn it_creates_author_model_text() -> Result<()> {
let lines_str = create_lines(Author::Model, BubbleAlignment::Left, 0, "Hi there!")?;
insta::assert_snapshot!(lines_str, @r###"
codellama:latest──╮
│ Hi there!
╰──────────────────╯
model-1────╮
│ Hi there!
╰───────────
"###);

return Ok(());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ source: src/domain/services/bubble_test.rs
expression: lines_str
---
'''
codellama:latest─────────────────────────────
model-1──────────────────────────────────────
Here's how to print in Rust.
│ │
```rust (10) │
Expand Down

0 comments on commit c5be6f8

Please sign in to comment.