Skip to content

Commit c4c1eb1

Browse files
committed
fix: update test for urls with no http/https
1 parent afcc59d commit c4c1eb1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/rewrite-links.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,10 @@ describe('rewrite-links', () => {
144144
expect(result).to.equal('/github-actions-test/test/test/anchor-link-in-table.md#request-object');
145145
});
146146

147-
it('external link with no http and https should fail', () => {
147+
it('external link with no http and https should not be rewritten', () => {
148148
const result = resolve(ctx, 'www.google.com', 'a');
149149
// www.google.com is not recognized as external, so it gets rewritten as a relative path
150-
expect(result).to.equal('/www.google.com');
150+
expect(result).to.equal('www.google.com');
151151
});
152152

153153
describe('Links that already have pathprefix', () => {

0 commit comments

Comments
 (0)