Skip to content

Commit 6f34574

Browse files
committed
Fix comments in aggr_settings.test.ts
1 parent 97bcc84 commit 6f34574

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

easydata.js/packs/core/tests/aggr_settings.test.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ describe('AggregationSettings', () => {
1010
let settings: AggregationSettings;
1111

1212
beforeEach(() => {
13-
// Создаем мок для AggregationColumnStore
13+
// Creating a mock for AggregationColumnStore
1414
columnStore = mock<AggregationColumnStore>({
1515
getColumnIds: (from, to) => {
1616
const result = [];
@@ -20,11 +20,11 @@ describe('AggregationSettings', () => {
2020
return result;
2121
},
2222
validateColumns: (columns) => {
23-
// Простая проверка - все колонки должны начинаться с 'col'
23+
// Simple check - all columns must start with 'col'
2424
return columns.every(col => typeof col === 'string' && col.startsWith('col'));
2525
},
2626
validateAggregate: (colId, funcId) => {
27-
// Проверка - валидные функции: 'sum', 'avg', 'min', 'max', 'count'
27+
// Check - valid functions: 'sum', 'avg', 'min', 'max', 'count'
2828
const validFuncs = ['sum', 'avg', 'min', 'max', 'count'];
2929
return typeof colId === 'string' &&
3030
colId.startsWith('col') &&
@@ -126,18 +126,18 @@ describe('AggregationSettings', () => {
126126
});
127127

128128
it('should check if settings are valid', () => {
129-
// Несуществующие группы и агрегаты -> невалидно
129+
// Non-existent groups and aggregates -> invalid
130130
expect(settings.isValid()).toBe(false);
131131

132-
// Только группы -> невалидно
132+
// Only groups -> invalid
133133
settings.addGroup({ columns: ['col1'] });
134134
expect(settings.isValid()).toBe(false);
135135

136-
// Группы и агрегаты -> валидно
136+
// Groups and aggregates -> valid
137137
settings.addAggregateColumn('col2', 'sum');
138138
expect(settings.isValid()).toBe(true);
139139

140-
// Только агрегаты и тотал -> валидно
140+
// Only aggregates and totals -> valid
141141
settings.clear();
142142
settings.addAggregateColumn('col1', 'sum');
143143
settings.addGrandTotals();

0 commit comments

Comments
 (0)