From 863846e919c3a8fc9c6a487df3a778358c5a59da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8D=8A=E8=8A=A5?= Date: Thu, 3 Apr 2025 11:38:59 +0800 Subject: [PATCH 1/2] =?UTF-8?q?test:=20=E5=8D=95=E6=B5=8B=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- __tests__/unit/utils/pattern/line-spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/__tests__/unit/utils/pattern/line-spec.ts b/__tests__/unit/utils/pattern/line-spec.ts index b8c3027457..50f56f0e4b 100644 --- a/__tests__/unit/utils/pattern/line-spec.ts +++ b/__tests__/unit/utils/pattern/line-spec.ts @@ -29,7 +29,7 @@ describe('utils: line pattern', () => { drawLine(ctx, cfg as LinePatternCfg, d); // 传入的是呈现的位置 expect(getPixelColor(canvas, 0, 0).hex).toEqual('#ff0000'); - expect(getPixelColor(canvas, 0, height - 1).hex).toEqual('#000000'); + expect(getPixelColor(canvas, 0, height - 1).hex).toEqual('#ff0000'); }); it('lineUnitPattern with strokeOpacity', () => { From 2edcef53752993ffeb9415bae3075a556e2baf95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8D=8A=E8=8A=A5?= Date: Thu, 3 Apr 2025 11:42:49 +0800 Subject: [PATCH 2/2] =?UTF-8?q?test:=20=E5=8D=95=E6=B5=8B=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c7c7cf8cdd..c8442199b2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ #### 2.4.33 (2025-04-03) +##### Tests + +* 单测修正 ([863846e9](https://github.com/antvis/G2plot/commit/863846e919c3a8fc9c6a487df3a778358c5a59da)) + +#### 2.4.33 (2025-04-03) + ##### Chores * update contact ([#3809](https://github.com/antvis/G2plot/pull/3809)) ([0b5a9af6](https://github.com/antvis/G2plot/commit/0b5a9af69eb285bf138880eee3f8add2efc647ff))