Skip to content

Commit

Permalink
Add second test
Browse files Browse the repository at this point in the history
  • Loading branch information
SamWilsn committed Aug 23, 2024
1 parent 1f64541 commit 9e4247b
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions eipw-lint/tests/lint_markdown_link_eip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,28 @@ header: value1
);
}

#[tokio::test]
async fn link_text_with_bold() {
let src = r#"---
header: value1
---
[EIP-1**EIP-1**](./eip-1.md)
"#;

let reports = Linter::<Text<String>>::default()
.clear_lints()
.deny(
"markdown-link-eip",
LinkEip(r"(eip-)([^.]*)\.md(#(.+))?$".to_string()),
)
.check_slice(None, src)
.run()
.await
.unwrap()
.into_inner();
assert_ne!(reports, "");
}

#[tokio::test]
async fn link_text_extended_section_description_with_bold() {
let src = r#"---
Expand Down

0 comments on commit 9e4247b

Please sign in to comment.