fix-typo: Use of than instead of then (#100030) (#100093)

Co-authored-by: Alejandro Fernández Haro <alejandro.haro@elastic.co>
This commit is contained in:
Kibana Machine 2021-05-13 19:35:58 -04:00 committed by GitHub
parent d20d1e8929
commit 64313ba5ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 12 additions and 12 deletions

View file

@ -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`'
);
}

View file

@ -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
);
}

View file

@ -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);

View file

@ -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',
}),
]
: [];

View file

@ -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,
@ -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,

View file

@ -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,

View file

@ -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: {

View file

@ -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');
});