Skip to content

Commit 6093736

Browse files
committed
test: variable url with query, issue #2
1 parent 697360a commit 6093736

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

test/expected/variable-url.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<a href="https://example.com/{{ var }}">Test</a>
1+
<a href="https://example.com/{{ var }}?foo=bar">Test</a>

test/fixtures/variable-url.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<a href="https://example.com/{{ var }}">Test</a>
1+
<a href="https://example.com/{{ var }}?foo=bar">Test</a>

test/test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ test('Skip if invalid URL', t => {
3434
})
3535

3636
test('Does not skip variable URL', t => {
37-
return process(t, 'variable-url')
37+
return process(t, 'variable-url', {
38+
parameters: {foo: 'bar'}
39+
})
3840
})
3941

4042
test('Does not encode parameters if `encode` option is false', t => {

0 commit comments

Comments
 (0)