Skip to content

Commit

Permalink
worker: Fix generated html test case
Browse files Browse the repository at this point in the history
Account for the added style in the generated HTML test case.

Signed-off-by: Russell Bryant <[email protected]>
  • Loading branch information
russellb committed Mar 17, 2024
1 parent 7ee42c4 commit e080ef7
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions worker/cmd/generate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,61 @@ func TestGenerateIndexHTML(t *testing.T) {
<html>
<head>
<title>Generated Data for PR 123</title>
<style>
:root {
--primary-color: #007bff;
--hover-color: #0056b3;
--text-color: #333;
--background-color: #f8f9fa;
--link-color: #0066cc;
--link-hover-color: #0044cc;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: var(--background-color);
margin: 0;
padding: 20px;
color: var(--text-color);
}
h1 {
color: var(--primary-color);
text-align: center;
margin-bottom: 2rem;
}
ul {
list-style-type: none;
padding: 0;
max-width: 600px;
margin: auto;
}
li {
background-color: #fff;
margin-bottom: 10px;
padding: 10px;
border-radius: 5px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
transition: transform 0.2s ease-in-out;
}
li:hover {
transform: translateY(-3px);
}
a {
color: var(--link-color);
text-decoration: none;
font-weight: 500;
}
a:hover {
color: var(--link-hover-color);
text-decoration: underline;
}
</style>
</head>
<body>
<h1>Generated Data for PR 123</h1>
Expand Down

0 comments on commit e080ef7

Please sign in to comment.