Skip to content

Commit 980cd9d

Browse files
Fix code style
1 parent f36edae commit 980cd9d

File tree

3 files changed

+30
-28
lines changed

3 files changed

+30
-28
lines changed

application/frontend/src/app/shared/pipes/capacity-quantity-unit.pip.spec.ts

+3-4
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
import { CapacityQuantityUnitPipe } from "./capacity-quantity-unit.pipe";
18-
17+
import { CapacityQuantityUnitPipe } from './capacity-quantity-unit.pipe';
1918

2019
describe('CapacityQuantityUnitPipe', () => {
2120
const pipe = new CapacityQuantityUnitPipe();
@@ -33,10 +32,10 @@ describe('CapacityQuantityUnitPipe', () => {
3332
});
3433

3534
it('returns default string when abbreviations is not found', () => {
36-
expect(pipe.transform('weight_kilograms', { 'pounds': 'lb' })).toBe('kilograms');
35+
expect(pipe.transform('weight_kilograms', { pounds: 'lb' })).toBe('kilograms');
3736
});
3837

3938
it('returns abbreviation when provided', () => {
40-
expect(pipe.transform('weight_kilograms', { 'kilograms': 'kg' })).toBe('kg');
39+
expect(pipe.transform('weight_kilograms', { kilograms: 'kg' })).toBe('kg');
4140
});
4241
});

application/frontend/src/app/shared/pipes/distance-limit.pipe.spec.ts

+14-12
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
import { DistanceLimitPipe } from "./distance-limit.pipe";
17+
import { DistanceLimitPipe } from './distance-limit.pipe';
1818

1919
describe('DistanceLimitPipe', () => {
2020
const pipe = new DistanceLimitPipe();
@@ -26,22 +26,24 @@ describe('DistanceLimitPipe', () => {
2626

2727
it('returns null values when fed null values', () => {
2828
expect(pipe.transform({})).toEqual({
29-
maxMeters: null,
30-
maxSoftMeters: null,
31-
costPerKilometerAfterSoftMax: null,
32-
});
29+
maxMeters: null,
30+
maxSoftMeters: null,
31+
costPerKilometerAfterSoftMax: null,
32+
});
3333
});
3434

3535
it('returns numbers when fed numbers', () => {
36-
expect(pipe.transform({
36+
expect(
37+
pipe.transform({
3738
maxMeters: 100,
3839
softMaxMeters: 10,
3940
costPerKilometerBelowSoftMax: 5,
40-
costPerKilometerAboveSoftMax: 8
41-
})).toEqual({
42-
maxMeters: 100,
43-
maxSoftMeters: 10,
44-
costPerKilometerAfterSoftMax: 8,
45-
});
41+
costPerKilometerAboveSoftMax: 8,
42+
})
43+
).toEqual({
44+
maxMeters: 100,
45+
maxSoftMeters: 10,
46+
costPerKilometerAfterSoftMax: 8,
47+
});
4648
});
4749
});

application/frontend/src/app/shared/pipes/duration-limit.pipe.spec.ts

+13-12
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
import { DurationLimitPipe } from "./duration-limit.pipe";
17+
import { DurationLimitPipe } from './duration-limit.pipe';
1818

1919
describe('DurationLimitPipe', () => {
2020
const pipe = new DurationLimitPipe();
@@ -26,22 +26,23 @@ describe('DurationLimitPipe', () => {
2626

2727
it('returns undefined values when fed undefined values', () => {
2828
expect(pipe.transform({})).toEqual({
29-
maxDuration: undefined,
30-
softMaxDuration: undefined,
31-
costPerHourAfterSoftMax: undefined,
32-
});
29+
maxDuration: undefined,
30+
softMaxDuration: undefined,
31+
costPerHourAfterSoftMax: undefined,
32+
});
3333
});
3434

3535
it('returns numbers when fed numbers', () => {
36-
expect(pipe.transform({
36+
expect(
37+
pipe.transform({
3738
maxDuration: { seconds: 100, nanos: 500 },
3839
softMaxDuration: { seconds: 10, nanos: 20 },
3940
costPerHourAfterSoftMax: 10,
40-
})).toEqual({
41-
maxDuration: { seconds: 100, nanos: 500 },
42-
softMaxDuration: { seconds: 10, nanos: 20 },
43-
costPerHourAfterSoftMax: 10,
44-
});
41+
})
42+
).toEqual({
43+
maxDuration: { seconds: 100, nanos: 500 },
44+
softMaxDuration: { seconds: 10, nanos: 20 },
45+
costPerHourAfterSoftMax: 10,
46+
});
4547
});
46-
4748
});

0 commit comments

Comments
 (0)