Stop using snake case
Signed-off-by: Karan Shah <karan.shah@simplybusiness.co.uk>
This commit is contained in:
@@ -25,7 +25,7 @@ import {
|
||||
import { ApiBar } from './components/ApiBar';
|
||||
import { Content, Header, Page } from '@backstage/core-components';
|
||||
import { EntityProvider } from '@backstage/plugin-catalog-react';
|
||||
import { createEntity } from '../src/api/mock/mock-entity';
|
||||
import { createEntity } from '../src/api/mock/MockEntity';
|
||||
import CloudOffIcon from '@material-ui/icons/CloudOff';
|
||||
import CloudIcon from '@material-ui/icons/Cloud';
|
||||
import { Context, ContextProvider } from './components/ContextProvider';
|
||||
|
||||
@@ -23,7 +23,9 @@
|
||||
"@backstage/catalog-model": "^0.9.10",
|
||||
"@backstage/core-components": "^0.8.8-next.0",
|
||||
"@backstage/core-plugin-api": "^0.6.0",
|
||||
"@backstage/dev-utils": "^0.2.21-next.0",
|
||||
"@backstage/plugin-catalog-react": "^0.6.12",
|
||||
"@backstage/test-utils": "^0.2.4",
|
||||
"@backstage/theme": "^0.2.14",
|
||||
"@material-ui/core": "^4.12.2",
|
||||
"@material-ui/icons": "^4.9.1",
|
||||
@@ -35,12 +37,9 @@
|
||||
"react": "^16.13.1 || ^17.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/object-hash": "^2.2.1",
|
||||
"@backstage/app-defaults": "^0.1.7-next.0",
|
||||
"@backstage/cli": "^0.13.2-next.0",
|
||||
"@backstage/core-app-api": "^0.5.2",
|
||||
"@backstage/dev-utils": "^0.2.21-next.0",
|
||||
"@backstage/test-utils": "^0.2.4",
|
||||
"@testing-library/jest-dom": "^5.10.1",
|
||||
"@testing-library/react": "^11.2.5",
|
||||
"@testing-library/user-event": "^13.1.8",
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { Groups } from './airbrake-groups';
|
||||
import { Groups } from './airbrakeGroups';
|
||||
import { createApiRef } from '@backstage/core-plugin-api';
|
||||
|
||||
export const airbrakeApiRef = createApiRef<AirbrakeApi>({
|
||||
+2
-2
@@ -14,9 +14,9 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { ProductionAirbrakeApi } from './production-api';
|
||||
import { ProductionAirbrakeApi } from './ProductionApi';
|
||||
import nock from 'nock';
|
||||
import mockGroupsData from './mock/airbrake-groups-api-mock.json';
|
||||
import mockGroupsData from './mock/airbrakeGroupsApiMock.json';
|
||||
|
||||
describe('The production Airbrake API', () => {
|
||||
let productionApi: ProductionAirbrakeApi;
|
||||
+2
-2
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { Groups } from './airbrake-groups';
|
||||
import { AirbrakeApi } from './airbrake-api';
|
||||
import { Groups } from './airbrakeGroups';
|
||||
import { AirbrakeApi } from './AirbrakeApi';
|
||||
|
||||
export class ProductionAirbrakeApi implements AirbrakeApi {
|
||||
constructor(private readonly apiKey?: string) {}
|
||||
Vendored
@@ -15,7 +15,7 @@
|
||||
*/
|
||||
|
||||
export * from './mock';
|
||||
export type { AirbrakeApi } from './airbrake-api';
|
||||
export { airbrakeApiRef } from './airbrake-api';
|
||||
export type { Groups } from './airbrake-groups';
|
||||
export { ProductionAirbrakeApi } from './production-api';
|
||||
export type { AirbrakeApi } from './AirbrakeApi';
|
||||
export { airbrakeApiRef } from './AirbrakeApi';
|
||||
export type { Groups } from './airbrakeGroups';
|
||||
export { ProductionAirbrakeApi } from './ProductionApi';
|
||||
|
||||
+3
-3
@@ -14,9 +14,9 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { Groups } from '../airbrake-groups';
|
||||
import { AirbrakeApi } from '../airbrake-api';
|
||||
import mockGroupsData from './airbrake-groups-api-mock.json';
|
||||
import { Groups } from '../airbrakeGroups';
|
||||
import { AirbrakeApi } from '../AirbrakeApi';
|
||||
import mockGroupsData from './airbrakeGroupsApiMock.json';
|
||||
|
||||
export class MockAirbrakeApi implements AirbrakeApi {
|
||||
waitTimeInMillis: number;
|
||||
@@ -14,4 +14,4 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
export { MockAirbrakeApi } from './mock-api';
|
||||
export { MockAirbrakeApi } from './MockApi';
|
||||
|
||||
@@ -16,13 +16,13 @@
|
||||
|
||||
import React from 'react';
|
||||
import { EntityAirbrakeWidget } from './EntityAirbrakeWidget';
|
||||
import exampleData from '../../api/mock/airbrake-groups-api-mock.json';
|
||||
import exampleData from '../../api/mock/airbrakeGroupsApiMock.json';
|
||||
import {
|
||||
MockErrorApi,
|
||||
renderInTestApp,
|
||||
TestApiProvider,
|
||||
} from '@backstage/test-utils';
|
||||
import { createEntity } from '../../api/mock/mock-entity';
|
||||
import { createEntity } from '../../api/mock/MockEntity';
|
||||
import {
|
||||
airbrakeApiRef,
|
||||
MockAirbrakeApi,
|
||||
|
||||
@@ -18,7 +18,7 @@ import { EntityAirbrakeContent } from './extensions';
|
||||
import { Route } from 'react-router';
|
||||
import { renderInTestApp, TestApiProvider } from '@backstage/test-utils';
|
||||
import { airbrakeApiRef, MockAirbrakeApi } from './api';
|
||||
import { createEntity } from './api/mock/mock-entity';
|
||||
import { createEntity } from './api/mock/MockEntity';
|
||||
import { EntityProvider } from '@backstage/plugin-catalog-react';
|
||||
|
||||
describe('The Airbrake entity', () => {
|
||||
|
||||
Reference in New Issue
Block a user