diff --git a/tests/redirect.test.ts b/tests/redirect.test.ts index f542500..7d10802 100644 --- a/tests/redirect.test.ts +++ b/tests/redirect.test.ts @@ -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', diff --git a/tests/snapshots/tests/redirect.test.ts.md b/tests/snapshots/tests/redirect.test.ts.md index 8c8ccfe..f278861 100644 --- a/tests/snapshots/tests/redirect.test.ts.md +++ b/tests/snapshots/tests/redirect.test.ts.md @@ -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', diff --git a/tests/snapshots/tests/redirect.test.ts.snap b/tests/snapshots/tests/redirect.test.ts.snap index 779bb65..853aff2 100644 Binary files a/tests/snapshots/tests/redirect.test.ts.snap and b/tests/snapshots/tests/redirect.test.ts.snap differ