Skip to content

Commit

Permalink
fix-typo: Use of than instead of then (elastic#100030)
Browse files Browse the repository at this point in the history
  • Loading branch information
afharo authored and yctercero committed May 25, 2021
1 parent 8c0993b commit fbe120d
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion packages/kbn-legacy-logging/src/rotate/log_rotator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export class LogRotator {
if (this.usePolling && !this.shouldUsePolling) {
this.log(
['warning', 'logging:rotate'],
'Looks like your current environment support a faster algorithm then polling. You can try to disable `usePolling`'
'Looks like your current environment support a faster algorithm than polling. You can try to disable `usePolling`'
);
}

Expand Down
2 changes: 1 addition & 1 deletion src/plugins/console/public/lib/autocomplete/engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export function populateContext(tokenPath, context, editor, includeAutoComplete,

if (!wsToUse && walkStates.length > 1 && !includeAutoComplete) {
console.info(
"more then one context active for current path, but autocomplete isn't requested",
"more than one context active for current path, but autocomplete isn't requested",
walkStates
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ describe('createChunks', () => {
expect(chunks[1].length).toBe(2);
});

test('should break features into chunks containing only single feature when feature size is greater then maxChunkCharCount', () => {
test('should break features into chunks containing only single feature when feature size is greater than maxChunkCharCount', () => {
const maxChunkCharCount = GEOMETRY_COLLECTION_DOC_CHARS * 0.8;
const chunks = createChunks(features, ES_FIELD_TYPES.GEO_SHAPE, maxChunkCharCount);
expect(chunks.length).toBe(5);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export const LegendControls = ({
const errors = !boundsValidRange
? [
i18n.translate('xpack.infra.legnedControls.boundRangeError', {
defaultMessage: 'Minimum must be smaller then the maximum',
defaultMessage: 'Minimum must be smaller than the maximum',
}),
]
: [];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ describe('createExtentFilter', () => {
});
});

it('should make left longitude greater then right longitude when area crosses 180 meridian east to west', () => {
it('should make left longitude greater than right longitude when area crosses 180 meridian east to west', () => {
const mapExtent = {
maxLat: 39,
maxLon: 200,
Expand All @@ -440,7 +440,7 @@ describe('createExtentFilter', () => {
});
});

it('should make left longitude greater then right longitude when area crosses 180 meridian west to east', () => {
it('should make left longitude greater than right longitude when area crosses 180 meridian west to east', () => {
const mapExtent = {
maxLat: 39,
maxLon: -100,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export function isTotalHitsGreaterThan(totalHits: TotalHits, value: number) {
if (value > totalHits.value) {
throw new Error(
i18n.translate('xpack.maps.totalHits.lowerBoundPrecisionExceeded', {
defaultMessage: `Unable to determine if total hits is greater than value. Total hits precision is lower then value. Total hits: {totalHitsString}, value: {value}. Ensure _search.body.track_total_hits is at least as large as value.`,
defaultMessage: `Unable to determine if total hits is greater than value. Total hits precision is lower than value. Total hits: {totalHitsString}, value: {value}. Ensure _search.body.track_total_hits is at least as large as value.`,
values: {
totalHitsString: JSON.stringify(totalHits, null, ''),
value,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ describe('APMSection', () => {
}));
});

it('renders transaction stat less then 1k', () => {
it('renders transaction stat less than 1k', () => {
const resp = {
appLink: '/app/apm',
stats: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@
import { formatDuration } from './format_duration';

describe('formatDuration(seconds)', () => {
it('should work for less then a minute', () => {
it('should work for less than a minute', () => {
expect(formatDuration(56)).toBe('56s');
});

it('should work for less then a hour', () => {
it('should work for less than a hour', () => {
expect(formatDuration(2000)).toBe('33m 20s');
});

it('should work for less then a day', () => {
it('should work for less than a day', () => {
expect(formatDuration(74566)).toBe('20h 42m');
});

it('should work for more then a day', () => {
it('should work for more than a day', () => {
expect(formatDuration(86400 * 3 + 3600 * 4)).toBe('3d 4h');
expect(formatDuration(86400 * 419 + 3600 * 6)).toBe('419d 6h');
});
Expand Down

0 comments on commit fbe120d

Please sign in to comment.