Files
shields/services/travis/travis-php-version-redirect.tester.js
2021-07-09 12:53:55 +01:00

20 lines
591 B
JavaScript

import { ServiceTester } from '../tester.js'
export const t = new ServiceTester({
id: 'TravisPhpVersionRedirect',
title: 'TravisPhpVersionRedirect',
pathPrefix: '/',
})
t.create('travis-ci no branch')
.get('travis-ci/php-v/symfony/symfony.svg')
.expectRedirect('/travis/php-v/symfony/symfony/master.svg')
t.create('travis-ci branch')
.get('travis-ci/php-v/symfony/symfony/2.8.svg')
.expectRedirect('/travis/php-v/symfony/symfony/2.8.svg')
t.create('travis no branch')
.get('travis/php-v/symfony/symfony.svg')
.expectRedirect('/travis/php-v/symfony/symfony/master.svg')