From ec3dee0adaa37867c4a6007b1620735130e52948 Mon Sep 17 00:00:00 2001 From: Steven Clontz Date: Sat, 25 Nov 2023 17:13:15 +0000 Subject: [PATCH] fix trim tests --- packages/core/test/Id.test.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/core/test/Id.test.ts b/packages/core/test/Id.test.ts index cd3af0d4..660007f9 100644 --- a/packages/core/test/Id.test.ts +++ b/packages/core/test/Id.test.ts @@ -1,5 +1,5 @@ import { describe, expect, it } from 'vitest' -import { format, toInt, trim } from '../src/Id' +import { format, toInt, trim, tag } from '../src/Id' describe('format', () => { it('pads the given character', () => { @@ -31,18 +31,18 @@ describe('toInt', () => { describe('trim', () => { it('trims down to the numeric content', () => { - expect(toInt('T000100')).toEqual(100) + expect(trim('T000100')).toEqual(100) }) it('does not require leading zeros', () => { - expect(toInt('P12')).toEqual(12) + expect(trim('P12')).toEqual(12) }) it('does not match nonexistent kinds', () => { - expect(toInt('Z000100')).toEqual(0) + expect(trim('Z000100')).toEqual(0) }) it('matches unknown kind', () => { - expect(toInt('000123')).toEqual(123) + expect(trim('000123')).toEqual(123) }) })