diff --git a/tests/redirect.test.ts b/tests/redirect.test.ts index ae7b89b..c1a108e 100644 --- a/tests/redirect.test.ts +++ b/tests/redirect.test.ts @@ -6,16 +6,19 @@ import { parseRedirect, HostnameRedirect, Redirect, + Redirects, RedirectParameters, } from '../source/redirect/exports.js'; test('parseRedirect', (t) => { - const samples: RedirectParameters[] = [ + const samples: Array = [ { test: 'Invalid parameters', - } as unknown as RedirectParameters, + } as unknown as Redirects['parameters'], { hostname: 'example.org', + matchType: 'hostname', + toMatch: 'example.com', type: 'hostname', }, ]; @@ -33,6 +36,8 @@ test('parseRedirect', (t) => { test('Redirect.redirect', (t) => { const hostnameRedirect = new HostnameRedirect({ + matchType: 'hostname', + toMatch: 'example.com', hostname: 'example.org', type: 'hostname', }); diff --git a/tests/snapshots/tests/redirect.test.ts.md b/tests/snapshots/tests/redirect.test.ts.md index 0cb63b1..b16a179 100644 --- a/tests/snapshots/tests/redirect.test.ts.md +++ b/tests/snapshots/tests/redirect.test.ts.md @@ -11,6 +11,8 @@ Generated by [AVA](https://avajs.dev). HostnameRedirect { parameters: { hostname: 'example.org', + matchType: 'hostname', + toMatch: 'example.com', type: 'hostname', }, } diff --git a/tests/snapshots/tests/redirect.test.ts.snap b/tests/snapshots/tests/redirect.test.ts.snap index 57ab73d..7c856b1 100644 Binary files a/tests/snapshots/tests/redirect.test.ts.snap and b/tests/snapshots/tests/redirect.test.ts.snap differ