Skip to content

Commit b7c3bba

Browse files
GuillaumeGomezsyphar
authored andcommitted
Fix tests
1 parent 972432d commit b7c3bba

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/web/crate_details.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1614,7 +1614,7 @@ mod tests {
16141614
.borrow()
16151615
.get("class")
16161616
.unwrap(),
1617-
"fa-svg"
1617+
"f-a_code-branch_solid fa-svg"
16181618
);
16191619

16201620
Ok(())

src/web/csp.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ mod tests {
169169
fn test_csp_other() {
170170
let csp = Csp::new();
171171
assert_eq!(
172-
Some("default-src 'none'; base-uri 'none'; img-src 'self' https:".into()),
172+
Some("default-src 'none'; base-uri 'none'; img-src 'self' https: data:".into()),
173173
csp.render(ContentType::Other)
174174
);
175175
}
@@ -179,7 +179,7 @@ mod tests {
179179
let csp = Csp::new();
180180
assert_eq!(
181181
Some(
182-
"default-src 'none'; base-uri 'none'; img-src 'self' https:; \
182+
"default-src 'none'; base-uri 'none'; img-src 'self' https: data:; \
183183
style-src 'self' 'unsafe-inline'"
184184
.into()
185185
),
@@ -192,7 +192,7 @@ mod tests {
192192
let csp = Csp::new();
193193
assert_eq!(
194194
Some(format!(
195-
"default-src 'none'; base-uri 'none'; img-src 'self' https:; \
195+
"default-src 'none'; base-uri 'none'; img-src 'self' https: data:; \
196196
style-src 'self'; font-src 'self'; connect-src 'self'; script-src 'nonce-{}'",
197197
csp.nonce()
198198
)),

0 commit comments

Comments
 (0)