From a5f59e99631db853dbd87e0f4ee18b269664696f Mon Sep 17 00:00:00 2001 From: Roy Li Date: Tue, 5 Mar 2024 14:08:40 +0800 Subject: [PATCH] fix: console --- src/provider/V2rayNSubscribeProvider.ts | 2 +- .../V2rayNSubscribeProvider.test.ts.md | 12 ++++++------ .../V2rayNSubscribeProvider.test.ts.snap | Bin 1058 -> 1056 bytes 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/provider/V2rayNSubscribeProvider.ts b/src/provider/V2rayNSubscribeProvider.ts index cbfab0d14..0b74a26e7 100644 --- a/src/provider/V2rayNSubscribeProvider.ts +++ b/src/provider/V2rayNSubscribeProvider.ts @@ -253,6 +253,6 @@ export const parseJSONConfig = ( break } - console.log(vmessNode) + return vmessNode } diff --git a/src/provider/__tests__/__snapshots__/V2rayNSubscribeProvider.test.ts.md b/src/provider/__tests__/__snapshots__/V2rayNSubscribeProvider.test.ts.md index 6d4c8dcc0..4937a01fe 100644 --- a/src/provider/__tests__/__snapshots__/V2rayNSubscribeProvider.test.ts.md +++ b/src/provider/__tests__/__snapshots__/V2rayNSubscribeProvider.test.ts.md @@ -17,10 +17,10 @@ Generated by [AVA](https://avajs.dev). obfsHost: 'gateway-carry.icloud.com', password: 'password', port: '443', - skipCertVerify: undefined, - tls13: undefined, + skipCertVerify: false, + tls13: false, type: 'shadowsocks', - udpRelay: undefined, + udpRelay: false, }, { hostname: 'us.example.com', @@ -28,10 +28,10 @@ Generated by [AVA](https://avajs.dev). nodeName: '🇺🇸US 2', password: 'password', port: '443', - skipCertVerify: undefined, - tls13: undefined, + skipCertVerify: false, + tls13: false, type: 'shadowsocks', - udpRelay: undefined, + udpRelay: false, }, { alterId: '64', diff --git a/src/provider/__tests__/__snapshots__/V2rayNSubscribeProvider.test.ts.snap b/src/provider/__tests__/__snapshots__/V2rayNSubscribeProvider.test.ts.snap index 92a44837d5d11a27b77f8d06e4833442c64392e7..396dda17dca746e1174e8ecb8057c8c0c2a1382a 100644 GIT binary patch literal 1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