Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
casey committed Jan 15, 2024
1 parent 216c51f commit 8a5d6c2
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/inscriptions/inscription.rs
Original file line number Diff line number Diff line change
Expand Up @@ -819,6 +819,20 @@ mod tests {
Some(" /content/09a8d837ec0bcaec668ecf405e696a16bee5990863659c224ff888fb6f8f45e7i0 \n"),
true,
);
case(
Some("text/html"),
Some(
r#"<body style="background:#F61;color:#fff;"><h1 style="height:100%">bvm.network</h1></body>"#,
),
true,
);
case(
Some("text/html"),
Some(
r#"<body style="background:#F61;color:#fff;"><h1 style="height:100%">bvm.network</h1></body>foo"#,
),
true,
);

assert!(Inscription {
content_type: Some("text/plain".as_bytes().into()),
Expand Down

0 comments on commit 8a5d6c2

Please sign in to comment.