Merge pull request #10147 from rex4539/typos

Fix typos
This commit is contained in:
Fredrik Adelöw
2022-03-15 11:01:46 +01:00
committed by GitHub
54 changed files with 99 additions and 61 deletions
@@ -93,7 +93,7 @@ describe('DatabaseManager', () => {
plugin: {
testdbname: {
connection: {
database: 'database_name_overriden',
database: 'database_name_overridden',
},
},
differentclient: {
@@ -304,10 +304,10 @@ describe('DatabaseManager', () => {
const mockCalls = mocked(createDatabaseClient).mock.calls.splice(-1);
const [_baseConfig, overrides] = mockCalls[0];
// simple case where only database name is overriden
// simple case where only database name is overridden
expect(overrides).toMatchObject({
connection: {
database: 'database_name_overriden',
database: 'database_name_overridden',
},
});
});
@@ -581,7 +581,7 @@ describe('DatabaseManager', () => {
plugin: {
testdbname: {
connection: {
database: 'database_name_overriden',
database: 'database_name_overridden',
host: 'newhost',
},
},
@@ -599,7 +599,7 @@ describe('DatabaseManager', () => {
expect(baseConfig.get()).toMatchObject({
client: 'pg',
connection: {
database: 'database_name_overriden',
database: 'database_name_overridden',
host: 'newhost',
user: 'foo',
password: 'bar',
@@ -608,7 +608,7 @@ describe('DatabaseManager', () => {
expect(overrides).toHaveProperty('searchPath', ['testdbname']);
expect(overrides).toHaveProperty(
'connection.database',
'database_name_overriden',
'database_name_overridden',
);
});
@@ -193,7 +193,7 @@ describe('database connection', () => {
});
describe('ensureSchemaExists', () => {
it('returns sucessfully with pg client', async () => {
it('returns successfully with pg client', async () => {
await ensureSchemaExists(
new ConfigReader({
client: 'pg',
@@ -529,7 +529,7 @@ spec:
terrains: [String]
"""
The percentage of the planet surface that is naturally occuring water or bodies
The percentage of the planet surface that is naturally occurring water or bodies
of water.
"""
surfaceWater: Float
@@ -16,7 +16,7 @@
/**
* NOTE: This is a worker thread function that is stringified and executed
* withing a `worker_threads.Worker`. Everything in this function must
* within a `worker_threads.Worker`. Everything in this function must
* be self-contained.
* Using TypeScript is fine as it is transpiled before being stringified.
*/
+1 -1
View File
@@ -19,7 +19,7 @@ export type WriteFileFunc = (contents: string) => Promise<void>;
export type FileDiff = {
// Relative path within the target directory
path: string;
// Wether the target file exists in the target directory.
// Whether the target file exists in the target directory.
missing: boolean;
// Contents of the file in the target directory, or an empty string if the file is missing.
targetContents: string;
+1 -1
View File
@@ -190,7 +190,7 @@ export type AppOptions = {
/**
* A collection of ApiFactories to register in the application as default APIs.
* Theses APIs can not be overridden by plugin factories, but can be overridden
* These APIs cannot be overridden by plugin factories, but can be overridden
* by plugin APIs provided through the
* A collection of ApiFactories to register in the application to either
* add new ones, or override factories provided by default or by plugins.
@@ -93,7 +93,7 @@ export const routeParentCollector = createCollector(
acc.set(routeRef, parentRouteRef.sticky);
// When we encounter a mount point with an explicit path, we stop gathering
// mount points withing the children and remove the sticky state
// mount points within the children and remove the sticky state
if (node.props?.path) {
nextParent = routeRef;
} else {
@@ -20,7 +20,7 @@ import { renderWithEffects, wrapInTestApp } from '@backstage/test-utils';
import Button from '@material-ui/core/Button';
describe('<EmptyState />', () => {
it('render EmptyState component with type annotaion is missing', async () => {
it('render EmptyState component with type annotation is missing', async () => {
const rendered = await renderWithEffects(
wrapInTestApp(
<EmptyState
@@ -151,7 +151,7 @@ export function SidebarPage(props: SidebarPageProps) {
* This hook provides a react ref to the main content.
* Allows to set an element as the main content and focus on that component.
*
* *Note: If `contentRef` is not set `focusContent` is noop. `Content` component sets this ref automaticaly*
* *Note: If `contentRef` is not set `focusContent` is noop. `Content` component sets this ref automatically*
*
* @public
* @example
@@ -56,7 +56,7 @@ export type SidebarContextType = {
};
/**
* Context wether the `Sidebar` is open
* Context whether the `Sidebar` is open
*/
export const SidebarContext = createContext<SidebarContextType>({
isOpen: false,
@@ -17,7 +17,7 @@
import { ApiRef, createApiRef } from '../system';
/**
* Fetaure flag descriptor.
* Feature flag descriptor.
*
* @public
*/
+1 -1
View File
@@ -148,7 +148,7 @@ export class DevAppBuilder {
}
/**
* Adds an array of themes to overide the default theme.
* Adds an array of themes to override the default theme.
*/
addThemes(themes: AppTheme[]) {
this.themes = themes;
@@ -54,7 +54,7 @@ const nullObservable = {
/**
* Mock implementation of the {@link core-plugin-api#ErrorApi} to be used in tests.
* Incudes withForError and getErrors methods for error testing.
* Includes withForError and getErrors methods for error testing.
* @public
*/
export class MockErrorApi implements ErrorApi {