chore: cargo fmt across workspace; add analytics domain to CSP
Build and Deploy / build-and-push (push) Successful in 4m46s
Build and Deploy / build-and-push (push) Successful in 4m46s
- Apply cargo fmt to solitaire_engine, solitaire_server formatting. - solitaire_server/src/lib.rs: add https://analytics.aleshym.co to script-src, img-src, and connect-src so the analytics beacon loads without a CSP violation. - docs and README updates. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -854,8 +854,7 @@ fn scrub_notch_labels_carry_helper_strings() {
|
||||
|
||||
let mut texts = scrub_notch_label_texts(&mut app);
|
||||
texts.sort();
|
||||
let mut expected: Vec<String> =
|
||||
scrub_notch_labels().iter().map(|s| s.to_string()).collect();
|
||||
let mut expected: Vec<String> = scrub_notch_labels().iter().map(|s| s.to_string()).collect();
|
||||
expected.sort();
|
||||
assert_eq!(
|
||||
texts, expected,
|
||||
@@ -1106,10 +1105,22 @@ fn move_log_active_row_text(app: &mut App) -> String {
|
||||
#[test]
|
||||
fn format_pile_uses_one_indexed_lowercase_names() {
|
||||
assert_eq!(format_pile(&KlondikePile::Stock), "waste");
|
||||
assert_eq!(format_pile(&KlondikePile::Foundation(Foundation::Foundation1)), "foundation 1");
|
||||
assert_eq!(format_pile(&KlondikePile::Foundation(Foundation::Foundation3)), "foundation 3");
|
||||
assert_eq!(format_pile(&KlondikePile::Tableau(Tableau::Tableau1)), "tableau 1");
|
||||
assert_eq!(format_pile(&KlondikePile::Tableau(Tableau::Tableau7)), "tableau 7");
|
||||
assert_eq!(
|
||||
format_pile(&KlondikePile::Foundation(Foundation::Foundation1)),
|
||||
"foundation 1"
|
||||
);
|
||||
assert_eq!(
|
||||
format_pile(&KlondikePile::Foundation(Foundation::Foundation3)),
|
||||
"foundation 3"
|
||||
);
|
||||
assert_eq!(
|
||||
format_pile(&KlondikePile::Tableau(Tableau::Tableau1)),
|
||||
"tableau 1"
|
||||
);
|
||||
assert_eq!(
|
||||
format_pile(&KlondikePile::Tableau(Tableau::Tableau7)),
|
||||
"tableau 7"
|
||||
);
|
||||
}
|
||||
|
||||
/// Move-body formatter renders `StockClick` as a label and
|
||||
|
||||
Reference in New Issue
Block a user