From d4b170a5d7f4c698586aba09fe596ea62f237a87 Mon Sep 17 00:00:00 2001 From: QLHazyCoder Date: Mon, 4 May 2026 03:50:21 +0800 Subject: [PATCH] test: deduplicate GoPay step definition assertions --- tests/step-definitions-module.test.js | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/step-definitions-module.test.js b/tests/step-definitions-module.test.js index 58bb710..abe7541 100644 --- a/tests/step-definitions-module.test.js +++ b/tests/step-definitions-module.test.js @@ -56,7 +56,6 @@ test('step definitions module exposes ordered normal and Plus step metadata', () assert.equal(plusSteps.some((step) => step.key === 'clear-login-cookies'), false); assert.equal(plusSteps.some((step) => step.key === 'fetch-login-code'), true); assert.equal(plusSteps.find((step) => step.key === 'paypal-approve')?.title, 'PayPal 登录与授权'); - const goPaySteps = api.getSteps({ plusModeEnabled: true, plusPaymentMethod: 'gopay' }); assert.equal(goPaySteps.find((step) => step.key === 'paypal-approve')?.title, 'GoPay 手机验证与授权'); assert.equal(api.getStepById(8, { plusModeEnabled: true, plusPaymentMethod: 'gopay' })?.title, 'GoPay 手机验证与授权'); assert.deepStrictEqual(api.getStepIds({ plusModeEnabled: true }), [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]);