Skip to content

Commit

Permalink
Test: Fix style of multiple automated tests in <nav>
Browse files Browse the repository at this point in the history
  • Loading branch information
dieulot committed Aug 22, 2023
1 parent eb2f026 commit 3525715
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions test/client/stylesheet.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ nav {
background-color: hsl(0 0% 100% / .375);
}

nav a {
display: block;

padding-block: .125em;
}

main {
grid-area: main;
}
Expand Down
2 changes: 1 addition & 1 deletion test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ async function fillHeaderWithTests(header) {
tests.push({testDir, ...testConfig})
}

let testsHtml = tests.map((value) => `<a href="/tests/${value.testDir}/index.html" data-no-instant>${value.title}</a>`)
let testsHtml = tests.map((value) => `<a href="/tests/${value.testDir}/index.html" data-no-instant>${value.title}</a>`).join('\n')
header = header.replace('<nav></nav>', `<nav>${testsHtml}</nav>`)

return header
Expand Down

0 comments on commit 3525715

Please sign in to comment.