From ed663484e2bbe76ecf31689a828e497255235ee9 Mon Sep 17 00:00:00 2001 From: Bauke Date: Wed, 26 Oct 2022 14:55:04 +0200 Subject: [PATCH] Add enabled property to tests. --- tests/redirect.test.ts | 3 +++ tests/snapshots/tests/redirect.test.ts.md | 2 ++ tests/snapshots/tests/redirect.test.ts.snap | Bin 512 -> 528 bytes 3 files changed, 5 insertions(+) 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 779bb659f69e43a66bdb2f365178b6c7d8dd2fad..853aff252738069a7c654e9d40f130a1156915b4 100644 GIT binary patch literal 528 zcmV+r0`L7nRzV22aLj2 z!E?=c8TRHU(K<^I%;<4@XH%YZ4xJJg(Z-Njd2@GqqO!0)6~l3Q1Eq4R#h7lt#%Vb3fQE?} z4OyRSd)(&AUMyEoRu?oX-CkG|RZUnNRVa44mDu~gWmww*^>gNM209+%bd)=wW2BX7 Soe(o)i1`3(+yH$D2LJ%gMEeN< literal 512 zcmV+b0{{I%RzVP_w51kcQ}9 zXdqjDwmz-c%)U-LvRV~w>FI?y2h$p?| zV0BB>8K)J-FLyYVa>3tRk4d|qNfE~_j1!MZ>cHr#{f