Add enabled property to tests.
This commit is contained in:
parent
055be574c5
commit
ed663484e2
|
@ -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',
|
||||
|
|
|
@ -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',
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue