Skip to content

Commit fe73893

Browse files
committed
test: fix tests to reflect newer reqwest version
Signed-off-by: Dmitry Dygalo <[email protected]>
1 parent ee8a49e commit fe73893

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

bindings/javascript/__test__/index.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ test("invalid href", (t) => {
4949
);
5050
});
5151
t.is(error.code, "GenericFailure");
52-
t.is(error.message, "builder error: empty host: http:");
52+
t.is(error.message, "builder error: http:");
5353
});
5454

5555
test("invalid style", (t) => {

bindings/python/tests-py/test_inlining.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def test_invalid_base_url():
135135

136136

137137
def test_invalid_href():
138-
with pytest.raises(ValueError, match="builder error: empty host: http:"):
138+
with pytest.raises(ValueError, match="builder error: http:"):
139139
css_inline.inline(
140140
"""<html>
141141
<head>

bindings/ruby/spec/css_inline_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def make_html(style, body)
112112
</body>
113113
</html>
114114
''')
115-
}.to raise_error('builder error: empty host: http:')
115+
}.to raise_error('builder error: http:')
116116
end
117117

118118
it 'Shows the CSS parsing errors' do

css-inline/tests/test_inlining.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ fn remote_network_stylesheet_invalid_url() {
693693
</html>"#;
694694
let error = inline(html).expect_err("Should fail");
695695
#[cfg(feature = "http")]
696-
let expected = "builder error: empty host: http:";
696+
let expected = "builder error: http:";
697697
#[cfg(not(feature = "http"))]
698698
let expected = "Loading external URLs requires the `http` feature";
699699
assert_eq!(error.to_string(), expected);

0 commit comments

Comments
 (0)