Skip to content

Commit

Permalink
test: don't pull remote additional page
Browse files Browse the repository at this point in the history
we do not actually support this, i'm not sure why it worked (i think the test was broken)
  • Loading branch information
liv committed Jun 27, 2023
1 parent c467df9 commit f563390
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions tests/build/fixtures/oranda_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ use oranda::site::javascript::analytics::Plausible;

pub fn no_artifacts(temp_dir: String) -> Config {
let mut additional_pages = IndexMap::new();
additional_pages.insert(
"Another Page".to_string(),
"https://raw.githubusercontent.com/axodotdev/oranda/main/README.md".to_string(),
);
additional_pages.insert("Another Page".to_string(), "SECURITY.md".to_string());
Config {
project: ProjectConfig {
description: Some(String::from("you axolotl questions")),
Expand Down
2 changes: 1 addition & 1 deletion tests/build/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ fn creates_nav() {
let layout = Layout::new(&config).unwrap();
let page = page::index(&config, &layout);
eprintln!("{}", page.contents);
assert!(page.contents.contains(r#"<nav class="nav"><ul><li><a href="/">Home</a></li><li><a href="/README/">Another Page</a></li></ul></nav>"#));
assert!(page.contents.contains(r#"<nav class="nav"><ul><li><a href="/">Home</a></li><li><a href="/SECURITY/">Another Page</a></li></ul></nav>"#));
}

#[test]
Expand Down

0 comments on commit f563390

Please sign in to comment.