Skip to content

Commit

Permalink
fix: 单测断言修复
Browse files Browse the repository at this point in the history
  • Loading branch information
huiyu.zjt committed Sep 14, 2023
1 parent 2f5cf95 commit 2872c64
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/s2-core/__tests__/unit/utils/text-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -325,8 +325,11 @@ describe('isUnchangedValue', () => {
expect(isUnchangedValue(123, 123)).toBeTruthy();
});

test('should return false for changed values', () => {
expect(isUnchangedValue('test', 'abc')).toBeFalsy();
test('should return true for numberless changed values', () => {
expect(isUnchangedValue('test', 'abc')).toBeTruthy();
});

test('should return false for numeric changed values', () => {
expect(isUnchangedValue(123, 456)).toBeFalsy();
});

Expand Down

0 comments on commit 2872c64

Please sign in to comment.