Files
shields/services/github/gist/github-gist-stars-redirect.tester.js
chris48s e8c42e9ec1 migrate service tests to GH actions (#8421)
* run service tests with GHA

* rename GithubGist services to Gist

* completely delete circle ci config
2023-01-17 20:55:57 +00:00

17 lines
417 B
JavaScript

import { ServiceTester } from '../../tester.js'
export const t = new ServiceTester({
id: 'GistStarsRedirect',
title: 'Github Gist Stars Redirect',
pathPrefix: '/github',
})
t.create('Stars redirect')
.get('/stars/gists/a8b8c979d200ffde13cc08505f7a6436', {
followRedirect: false,
})
.expectStatus(301)
.expectHeader(
'Location',
'/github/gist/stars/a8b8c979d200ffde13cc08505f7a6436.svg'
)