Skip to content

Commit

Permalink
rename verification data fetcher tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hfxbse committed Mar 25, 2024
1 parent 7917c7f commit 855e599
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/instagram.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ describe("Password encryption", () => {
})
})

describe("Verification data", () => {
describe("Verification data fetcher", () => {
const sharedData = {
encryption: {
key_id: "87",
Expand All @@ -142,22 +142,22 @@ describe("Verification data", () => {
} as Response))
})

test("Fetches CSRF token", async () => {
test("Returns CSRF token", async () => {
const {csrf} = await fetchVerification()
expect(csrf).toStrictEqual(sharedData.config.csrf_token)
})

test("Fetches public key", async () => {
test("Returns public key", async () => {
const {key} = await fetchVerification()
expect(key.public).toStrictEqual(sharedData.encryption.public_key)
})

test("Fetches key id", async () => {
test("Returns key id", async () => {
const {key} = await fetchVerification()
expect(key.id).toStrictEqual(parseInt(sharedData.encryption.key_id, 10))
})

test("Fetches key version", async () => {
test("Returns key version", async () => {
const {key} = await fetchVerification()
expect(key.version).toStrictEqual(parseInt(sharedData.encryption.version, 10))
})
Expand Down

0 comments on commit 855e599

Please sign in to comment.