Skip to content

Commit

Permalink
refactor: remove kratos file from spelling config
Browse files Browse the repository at this point in the history
  • Loading branch information
vindard committed Feb 8, 2024
1 parent 17bf38a commit 98fc290
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 3 additions & 3 deletions core/api/test/unit/services/kratos/identity.spec.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { getNextPageToken } from "@/services/kratos"

describe("decoding link header", () => {
const withNext =
'</admin/clients?page_size=5&page_token=euKoY1BqY3J8GVax>; rel="first",</admin/clients?page_size=5&page_token=h9LfEKUiFoLH2R0A>; rel="next"'
const token = "h9LfEKUiFoLH2R0A"

Check warning on line 4 in core/api/test/unit/services/kratos/identity.spec.ts

View workflow job for this annotation

GitHub Actions / Spell Check with Typos

"Fo" should be "Of" or "For" or "Do" or "Go" or "To".
const withNext = `</admin/clients?page_size=5&page_token=euKoY1BqY3J8GVax>; rel="first",</admin/clients?page_size=5&page_token=${token}>; rel="next"`

const withoutNext =
'</admin/clients?page_size=5&page_token=euKoY1BqY3J8GVax>; rel="first"'

it("try decoding link successfully", () => {
expect(getNextPageToken(withNext)).toBe("h9LfEKUiFoLH2R0A")
expect(getNextPageToken(withNext)).toBe(token)
})

it("should be undefined when no more next is present", () => {
Expand Down
2 changes: 0 additions & 2 deletions typos.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@ files.extend-exclude = [
"dev",
"core/api/dev",
"core/api/src/domain/users/languages.ts",
"docs/postman-collection/galoy_graphql_main_api.postman_collection.json",
"core/api/docker-compose.yml",
"quickstart/*.yml",
"quickstart/galoy",
"quickstart/dev",
"prelude",
"core/api/test/unit/services/kratos/identity.spec.ts",
"core/notifications/locales/*.yml",
]

Expand Down

0 comments on commit 98fc290

Please sign in to comment.