Skip to content

Commit

Permalink
ci(module: alert): improve test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
1wkk committed Oct 26, 2022
1 parent fbe066a commit 0dcec23
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions components/core/util/text-mesure.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { pxToNumber } from './text-measure';

describe('pxToNumber', () => {
it('should return 0 when value is null', () => {
expect(pxToNumber(null)).toBe(0);
});
});

0 comments on commit 0dcec23

Please sign in to comment.