forked from github/docs
-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request github#35198 from github/repo-sync
Repo sync
- Loading branch information
Showing
11 changed files
with
192 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -122,7 +122,7 @@ describe('recently deprecated redirects', () => { | |
expect(res.headers.vary).toContain('accept-language') | ||
expect(res.headers.vary).toContain('x-user-language') | ||
// This is based on | ||
// https://github.com/github/help-docs-archived-enterprise-versions/blob/master/3.0/redirects.json | ||
// https://github.com/github/docs-ghes-3.0/blob/main/redirects.json | ||
expect(res.headers.location).toBe( | ||
'/en/[email protected]/get-started/learning-about-github/githubs-products', | ||
) | ||
|
@@ -309,8 +309,8 @@ describe('JS and CSS assets', () => { | |
expect(result.headers['x-is-archived']).toBeUndefined() | ||
}) | ||
|
||
test('404 if the pathname contains URL characters (..)', async () => { | ||
const result = await get('/enterprise/2.18/dist/index..css', { | ||
test('404 if the pathname contains URL characters (../)', async () => { | ||
const result = await get('/enterprise/2.18/dist/index../css', { | ||
headers: { | ||
Referrer: '/en/enterprise/2.18', | ||
}, | ||
|
Oops, something went wrong.