Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix-typo: Use of than instead of then #100030

Merged
merged 1 commit into from
May 13, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -62,7 +62,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