From 7fb9bb52941e9c7bb458f1dc7cabb3737d05dffe Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Tue, 14 May 2024 18:20:34 +0200 Subject: infra(vitest): prefer-to-have-length (#2900) --- test/modules/git.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/modules/git.spec.ts') diff --git a/test/modules/git.spec.ts b/test/modules/git.spec.ts index 8957e995..e4692b20 100644 --- a/test/modules/git.spec.ts +++ b/test/modules/git.spec.ts @@ -134,7 +134,7 @@ describe('git', () => { expect(commitDate).toBeTypeOf('string'); const parts = commitDate.split(' '); - expect(parts.length).toBe(6); + expect(parts).toHaveLength(6); }); }); -- cgit v1.2.3