Skip to content

Commit

Permalink
Add test case with no owner
Browse files Browse the repository at this point in the history
  • Loading branch information
boxbeam committed Apr 18, 2024
1 parent fe8dcef commit ab0a6b4
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions crates/tabby/src/services/code.rs
Original file line number Diff line number Diff line change
Expand Up @@ -369,5 +369,16 @@ mod tests {
),
Some("https://github.com/TabbyML/tabby".into())
);

// Test different protocol should still match
assert_eq!(
closest_match(
"https://custom-git.com/tabby",
[&RepositoryConfig::new(
"https://custom-git.com/TabbyML/tabby".to_string()
)]
),
Some("https://custom-git.com/TabbyML/tabby".into())
);
}
}

0 comments on commit ab0a6b4

Please sign in to comment.