Add enabled property to tests.

This commit is contained in:
Bauke 2022-10-26 14:55:04 +02:00
parent 055be574c5
commit ed663484e2
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
3 changed files with 5 additions and 0 deletions

View File

@ -16,6 +16,7 @@ import {
} from '../source/redirect/exports.js';
const hostnameParameters: RedirectParameters = {
enabled: true,
matcherType: 'hostname',
matcherValue: 'example.com',
redirectType: 'hostname',
@ -23,6 +24,7 @@ const hostnameParameters: RedirectParameters = {
};
const simpleParameters: RedirectParameters = {
enabled: true,
matcherType: 'hostname',
matcherValue: 'example.com',
redirectType: 'simple',
@ -89,6 +91,7 @@ test('Redirect.isMatch', (t) => {
} as unknown as HostnameRedirect['parameters']);
const regexMatch = new HostnameRedirect({
enabled: true,
matcherType: 'regex',
matcherValue: String.raw`^https://(www\.)?example.org/$`,
redirectType: 'simple',

View File

@ -11,6 +11,7 @@ Generated by [AVA](https://avajs.dev).
HostnameRedirect {
id: 'id',
parameters: {
enabled: true,
matcherType: 'hostname',
matcherValue: 'example.com',
redirectType: 'hostname',
@ -23,6 +24,7 @@ Generated by [AVA](https://avajs.dev).
SimpleRedirect {
id: 'id',
parameters: {
enabled: true,
matcherType: 'hostname',
matcherValue: 'example.com',
redirectType: 'simple',