Files
shields/services/endpoint/endpoint-redirect.tester.js
chris48s 347e0a81f3 set followRedirect: false by default in tests (#4491)
* set followRedirect: false by default in tests

* update tests implicitly relying on redirects

Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2020-01-07 21:13:48 +00:00

14 lines
357 B
JavaScript

'use strict'
const { ServiceTester } = require('../tester')
const t = (module.exports = new ServiceTester({
id: 'EndpointRedirect',
title: 'EndpointRedirect',
pathPrefix: '/badge/endpoint',
}))
t.create('Build: default branch')
.get('.svg?url=https://example.com/badge.json')
.expectRedirect('/endpoint.svg?url=https://example.com/badge.json')