Skip to content

Commit

Permalink
build: fix type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
benwainwrightcinch committed May 15, 2023
1 parent 2d185b7 commit ed29fe0
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/app/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const App = ({ dataFile }: AppProps) => {
if (editRequest) {
return (
<EditRequestForm
initalValue={editRequest}
initialValue={editRequest}
onCancel={() => {
setEditRequest(undefined);
}}
Expand Down
20 changes: 20 additions & 0 deletions src/components/request-fields/request-fields.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,23 @@ describe("<RequestFields>", () => {
const fields: HttpRequestWithFields = {
body: [
{
description: "",
name: "bar",
replace: "{{bar}}",
data: "",
},
],
host: [
{
description: "",
name: "foo",
replace: "{{ foo }}",
data: "",
},
],
path: [
{
description: "",
name: "flux",
replace: "{{flux}}",
data: "",
Expand All @@ -32,6 +35,7 @@ describe("<RequestFields>", () => {
headers: {
"foo-header": [
{
description: "",
name: "foobar",
// eslint-disable-next-line sonarjs/no-duplicate-string
replace: "{{ foobar }}",
Expand Down Expand Up @@ -71,6 +75,7 @@ describe("<RequestFields>", () => {
name: "foo",
replace: "{{ foo }}",
data: "",
description: "",
},
],
path: [],
Expand All @@ -80,6 +85,7 @@ describe("<RequestFields>", () => {
name: "foobar",
replace: "{{ foobar }}",
data: "",
description: "",
},
],
},
Expand All @@ -105,6 +111,7 @@ describe("<RequestFields>", () => {
{
name: "foo",
replace: "{{ foo }}",
description: "",
data: "",
},
],
Expand All @@ -114,6 +121,7 @@ describe("<RequestFields>", () => {
{
name: "foobar",
replace: "{{ foobar }}",
description: "",
data: "foo",
},
],
Expand All @@ -130,6 +138,7 @@ describe("<RequestFields>", () => {
{
name: "foo",
replace: "{{ foo }}",
description: "",
data: "",
},
],
Expand All @@ -139,6 +148,7 @@ describe("<RequestFields>", () => {
{
name: "foobar",
replace: "{{ foobar }}",
description: "",
data: "",
},
],
Expand All @@ -163,6 +173,7 @@ describe("<RequestFields>", () => {
{
name: "foo",
replace: "{{ foo }}",
description: "",
data: "foo",
},
],
Expand All @@ -172,6 +183,7 @@ describe("<RequestFields>", () => {
{
name: "foobar",
replace: "{{ foobar }}",
description: "",
data: "",
},
],
Expand All @@ -189,6 +201,7 @@ describe("<RequestFields>", () => {
{
name: "foo",
replace: "{{ foo }}",
description: "",
data: "",
},
],
Expand All @@ -197,6 +210,7 @@ describe("<RequestFields>", () => {
{
name: "foobar",
replace: "{{ foobar }}",
description: "",
data: "",
},
],
Expand All @@ -222,6 +236,7 @@ describe("<RequestFields>", () => {
{
name: "foo",
replace: "{{ foo }}",
description: "",
data: "foo",
},
],
Expand All @@ -230,6 +245,7 @@ describe("<RequestFields>", () => {
{
name: "foobar",
replace: "{{ foobar }}",
description: "",
data: "",
},
],
Expand All @@ -245,6 +261,7 @@ describe("<RequestFields>", () => {
{
name: "foo",
replace: "{{ foo }}",
description: "",
data: "",
},
],
Expand All @@ -255,6 +272,7 @@ describe("<RequestFields>", () => {
{
name: "foobar",
replace: "{{ foobar }}",
description: "",
data: "",
},
],
Expand All @@ -278,6 +296,7 @@ describe("<RequestFields>", () => {
{
name: "foo",
replace: "{{ foo }}",
description: "",
data: "foo",
},
],
Expand All @@ -288,6 +307,7 @@ describe("<RequestFields>", () => {
{
name: "foobar",
replace: "{{ foobar }}",
description: "",
data: "",
},
],
Expand Down

0 comments on commit ed29fe0

Please sign in to comment.