Files
shields/services/github/gist/github-gist-last-commit-redirect.tester.js
chris48s c8a0a8660e tidy up [GitHubGist] routes (#8510)
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2022-11-04 19:43:14 +00:00

17 lines
451 B
JavaScript

import { ServiceTester } from '../../tester.js'
export const t = new ServiceTester({
id: 'GithubGistLastCommitRedirect',
title: 'Github Gist Last Commit Redirect',
pathPrefix: '/github-gist',
})
t.create('Last Commit redirect')
.get('/last-commit/a8b8c979d200ffde13cc08505f7a6436', {
followRedirect: false,
})
.expectStatus(301)
.expectHeader(
'Location',
'/github/gist/last-commit/a8b8c979d200ffde13cc08505f7a6436.svg'
)