1
0
mirror of https://github.com/badges/shields.git synced 2025-04-18 19:44:04 +03:00
shields/services/github/gist/github-gist-last-commit-redirect.tester.js

18 lines
447 B
JavaScript

import { ServiceTester } from '../../tester.js'
export const t = new ServiceTester({
id: 'GistLastCommitRedirect',
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',
)