Skip to content

Commit

Permalink
chore: fix typos in test names and changeset (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
christoph-fricke committed Oct 22, 2023
1 parent f6eb09c commit d7a45e5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .changeset/three-llamas-sin.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Added `createOpenApiHttp(...)` to create a thin, type-safe wrapper around
[MSW](https://mswjs.io/)'s `http` that uses
[openapi-ts](https://openapi-ts.pages.dev/introduction/) `paths``:
[openapi-ts](https://openapi-ts.pages.dev/introduction/) `paths`:

```ts
import type { paths } from "./openapi-ts-definitions";
Expand Down
8 changes: 4 additions & 4 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
"@typescript-eslint/no-empty-interface": [
"error",
{
// Often types are computed and expanded in Intellisense previews in editors,
// which can lead to verbose and heard to understand type signatures.
// Interface keep their name in previews, which can be used to clarify
// previews by using interfaces that just extend a type.
// Often types are computed and expanded in editor previews,
// which can lead to verbose and hard-to-understand type signatures.
// Interfaces keep their name in previews, which can be used to clarify
// previews by using interfaces that only extend a type.
"allowSingleExtends": true
}
]
Expand Down
4 changes: 2 additions & 2 deletions src/path-mapping.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ describe(convertToColonPath, () => {
expect(result).toBe("/users/:id");
});

it("should convert all fragment in a path to colon convention", () => {
it("should convert all fragments in a path to colon convention", () => {
const result = convertToColonPath("/users/{userId}/posts/{postIds}");

expect(result).toBe("/users/:userId/posts/:postIds");
});

it("should append baseUrl to the path when provided", () => {
it("should append a baseUrl to the path when provided", () => {
const noBaseUrl = convertToColonPath("/users");
const withBaseUrl = convertToColonPath("/users", "https://localhost:3000");

Expand Down

0 comments on commit d7a45e5

Please sign in to comment.