Skip to content
This repository was archived by the owner on Jun 1, 2025. It is now read-only.

Commit 522277c

Browse files
Ghislain BeaulacGhislain Beaulac
authored andcommitted
refactor(test): update certain tests order to match component code
1 parent 7973645 commit 522277c

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/app/modules/angular-slickgrid/formatters/__tests__/decimalFormatter.spec.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,12 @@ describe('the Decimal Formatter', () => {
4646
expect(output).toBe('99.10');
4747
});
4848

49-
it('should display a number with dollar sign and use "minDecimalPlaces" params', () => {
49+
it('should display a number with dollar sign and use "minDecimalPlaces" (or the deprecated "decimalPlaces") params', () => {
5050
const input = 99.1;
51-
const output = decimalFormatter(1, 1, input, { params: { minDecimalPlaces: 2 } } as Column, {});
52-
expect(output).toBe('99.10');
51+
const output1 = decimalFormatter(1, 1, input, { params: { minDecimalPlaces: 2 } } as Column, {});
52+
const output2 = decimalFormatter(1, 1, input, { params: { decimalPlaces: 2 } } as Column, {});
53+
expect(output1).toBe('99.10');
54+
expect(output2).toBe('99.10');
5355
});
5456

5557
it('should display a number with dollar sign and use "maxDecimal" params', () => {

src/app/modules/angular-slickgrid/services/__tests__/extension.service.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const extensionHeaderMenuStub = {
5656
translateHeaderMenu: jest.fn()
5757
};
5858

59-
describe('GridStateService', () => {
59+
describe('ExtensionService', () => {
6060
let service: ExtensionService;
6161
let translate: TranslateService;
6262

0 commit comments

Comments
 (0)