Skip to content

Commit 261a926

Browse files
committed
test: for issue #2
1 parent 4e7d5f5 commit 261a926

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

test/expected/variable-url.html

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

test/fixtures/variable-url.html

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

test/test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ test('Skip if invalid URL', t => {
3333
})
3434
})
3535

36+
test('Does not skip variable URL', t => {
37+
return process(t, 'variable-url')
38+
})
39+
3640
test('Does not encode parameters if `encode` option is false', t => {
3741
return process(t, 'no-encode', {
3842
qs: {encode: false},

0 commit comments

Comments
 (0)