Skip to content

Commit

Permalink
renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
cauemarcondes committed Jun 22, 2021
1 parent 8f38c6e commit 8582eb8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import { fireEvent, render, screen } from '@testing-library/react';
import { HttpStart } from 'kibana/public';
import React from 'react';
import TutorialAgentSecretTokenSelector from './';
import TutorialConfigAgent from './';

const policyElasticAgentOnCloudAgent = {
id: 'policy-elastic-agent-on-cloud',
Expand All @@ -31,7 +31,7 @@ const agents = [
},
];

describe('TutorialAgentSecretTokenSelector', () => {
describe('TutorialConfigAgent', () => {
beforeAll(() => {
jest.spyOn(console, 'error').mockImplementation(() => null);
});
Expand All @@ -41,7 +41,7 @@ describe('TutorialAgentSecretTokenSelector', () => {
});
it('renders loading component while API is being called', () => {
const component = render(
<TutorialAgentSecretTokenSelector
<TutorialConfigAgent
variantId="java"
http={
({
Expand All @@ -56,7 +56,7 @@ describe('TutorialAgentSecretTokenSelector', () => {
});
it('updates commands when a different policy is selected', async () => {
const component = render(
<TutorialAgentSecretTokenSelector
<TutorialConfigAgent
variantId="java"
http={
({
Expand Down Expand Up @@ -102,7 +102,7 @@ describe('TutorialAgentSecretTokenSelector', () => {
describe('running on prem', () => {
it('selects defaul standalone by defauls', async () => {
const component = render(
<TutorialAgentSecretTokenSelector
<TutorialConfigAgent
variantId="java"
http={
({
Expand Down Expand Up @@ -138,7 +138,7 @@ describe('TutorialAgentSecretTokenSelector', () => {
describe('running on cloud', () => {
it('selects defaul standalone by defauls', async () => {
const component = render(
<TutorialAgentSecretTokenSelector
<TutorialConfigAgent
variantId="java"
http={
({
Expand Down Expand Up @@ -175,7 +175,7 @@ describe('TutorialAgentSecretTokenSelector', () => {
});
it('selects policy elastic agent on cloud when available by default', async () => {
const component = render(
<TutorialAgentSecretTokenSelector
<TutorialConfigAgent
variantId="java"
http={
({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ interface Props {
isCloudEnabled: boolean;
}

function TutorialAgentSecretTokenSelector({
function TutorialConfigAgent({
variantId,
http,
basePath,
Expand Down Expand Up @@ -138,4 +138,4 @@ function TutorialAgentSecretTokenSelector({
}

// eslint-disable-next-line import/no-default-export
export default TutorialAgentSecretTokenSelector;
export default TutorialConfigAgent;
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/
import { HttpStart } from 'kibana/public';
import React from 'react';
import TutorialAgentSecretTokenSelector from './';
import TutorialConfigAgent from './';

interface Props {
http: HttpStart;
Expand All @@ -20,7 +20,7 @@ function TutorialConfigAgentRumScript({
isCloudEnabled,
}: Props) {
return (
<TutorialAgentSecretTokenSelector
<TutorialConfigAgent
variantId="js_script"
http={http}
basePath={basePath}
Expand Down

0 comments on commit 8582eb8

Please sign in to comment.