Skip to content

Commit

Permalink
update test descriptions
Browse files Browse the repository at this point in the history
Signed-off-by: Nik Nasr <[email protected]>
  • Loading branch information
nikrooz committed Nov 22, 2024
1 parent fa1cb63 commit ddc6051
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/elements-core/src/components/TryIt/TryIt.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ describe('TryIt', () => {
});

describe('No Request body', () => {
it('with GET method', async () => {
it('Adds no Content-type header with GET method', async () => {
render(<TryItWithPersistence httpOperation={basicOperation} />);

clickSend();
Expand All @@ -693,7 +693,7 @@ describe('TryIt', () => {
expect(headers.get('Content-Type')).toBe(null);
});

it('with POST method', async () => {
it('Adds no Content-type header with POST method', async () => {
render(<TryItWithPersistence httpOperation={{ ...basicOperation, request: undefined, method: 'POST' }} />);

clickSend();
Expand All @@ -705,7 +705,7 @@ describe('TryIt', () => {
expect(headers.get('Content-Type')).toBe(null);
});

it('with PATCH method', async () => {
it('Adds no Content-type header with PATCH method', async () => {
render(<TryItWithPersistence httpOperation={{ ...basicOperation, request: undefined, method: 'PATCH' }} />);

clickSend();
Expand All @@ -717,7 +717,7 @@ describe('TryIt', () => {
expect(headers.get('Content-Type')).toBe(null);
});

it('with PUT method', async () => {
it('Adds no Content-type header with PUT method', async () => {
render(<TryItWithPersistence httpOperation={{ ...basicOperation, request: undefined, method: 'PUT' }} />);

clickSend();
Expand Down

0 comments on commit ddc6051

Please sign in to comment.