NobGit
public anord read

Ledger

Why work hard when you can work easier?

Languages

Repository composition by tracked source files.

TypeScript
TypeScript 86% CSS 10% SQL 3% Shell 1% HTML 0%
Create file Wiki Documentation
Clone
https://nobgit.com/orgs/anord/ledger.git
ssh://[email protected]:2222/orgs/anord/ledger.git

Trace

apps/api/src/test/http.test.ts

Trace helps you understand code history line by line. See who changed each line, when it changed, and which commit introduced it.

http.test.ts on main
Author Date Commit Line Code
Alex Nord 3 months ago 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
1
import request from "supertest";
Open commit View diff
1 import request from "supertest";
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
2
import { beforeEach, describe, expect, it, vi } from "vitest";
Open commit View diff
2 import { beforeEach, describe, expect, it, vi } from "vitest";
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
3
Open commit View diff
3
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
4
const queryMock = vi.fn();
Open commit View diff
4 const queryMock = vi.fn();
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
5
const enqueueWebhookEvent = vi.fn();
Open commit View diff
5 const enqueueWebhookEvent = vi.fn();
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
6
const verifyPassword = vi.fn();
Open commit View diff
6 const verifyPassword = vi.fn();
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
7
const getUserForSession = vi.fn();
Open commit View diff
7 const getUserForSession = vi.fn();
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
8
const createSessionToken = vi.fn(() => "token");
Open commit View diff
8 const createSessionToken = vi.fn(() => "token");
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
9
Open commit View diff
9
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
10
vi.mock("../db/pool.js", () => ({
Open commit View diff
10 vi.mock("../db/pool.js", () => ({
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
11
  pool: {
Open commit View diff
11 pool: {
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
12
    query: queryMock
Open commit View diff
12 query: queryMock
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
13
  }
Open commit View diff
13 }
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
14
}));
Open commit View diff
14 }));
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
15
Open commit View diff
15
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
16
vi.mock("../services/webhooks.js", () => ({
Open commit View diff
16 vi.mock("../services/webhooks.js", () => ({
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
17
  enqueueWebhookEvent
Open commit View diff
17 enqueueWebhookEvent
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
18
}));
Open commit View diff
18 }));
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
19
Open commit View diff
19
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
20
vi.mock("../services/auth.js", () => ({
Open commit View diff
20 vi.mock("../services/auth.js", () => ({
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
21
  verifyPassword,
Open commit View diff
21 verifyPassword,
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
22
  getUserForSession,
Open commit View diff
22 getUserForSession,
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
23
  createSessionToken,
Open commit View diff
23 createSessionToken,
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
24
  verifySessionToken: vi.fn(),
Open commit View diff
24 verifySessionToken: vi.fn(),
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
25
  hashPassword: vi.fn()
Open commit View diff
25 hashPassword: vi.fn()
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
26
}));
Open commit View diff
26 }));
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
27
Open commit View diff
27
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
28
describe("http flows", () => {
Open commit View diff
28 describe("http flows", () => {
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
29
  beforeEach(() => {
Open commit View diff
29 beforeEach(() => {
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
30
    queryMock.mockReset();
Open commit View diff
30 queryMock.mockReset();
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
31
    enqueueWebhookEvent.mockReset();
Open commit View diff
31 enqueueWebhookEvent.mockReset();
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
32
    verifyPassword.mockReset();
Open commit View diff
32 verifyPassword.mockReset();
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
33
    getUserForSession.mockReset();
Open commit View diff
33 getUserForSession.mockReset();
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
34
    createSessionToken.mockClear();
Open commit View diff
34 createSessionToken.mockClear();
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
35
  });
Open commit View diff
35 });
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
36
Open commit View diff
36
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
37
  it("logs in with valid credentials", async () => {
Open commit View diff
37 it("logs in with valid credentials", async () => {
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
38
    queryMock
Open commit View diff
38 queryMock
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
39
      .mockResolvedValueOnce({
Open commit View diff
39 .mockResolvedValueOnce({
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
40
        rowCount: 1,
Open commit View diff
40 rowCount: 1,
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
41
        rows: [{ id: "user-1", password_hash: "hash" }]
Open commit View diff
41 rows: [{ id: "user-1", password_hash: "hash" }]
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
42
      })
Open commit View diff
42 })
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
43
      .mockResolvedValueOnce({ rowCount: 1, rows: [] });
Open commit View diff
43 .mockResolvedValueOnce({ rowCount: 1, rows: [] });
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
44
    verifyPassword.mockResolvedValueOnce(true);
Open commit View diff
44 verifyPassword.mockResolvedValueOnce(true);
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
45
    getUserForSession.mockResolvedValueOnce({
Open commit View diff
45 getUserForSession.mockResolvedValueOnce({
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
46
      id: "user-1",
Open commit View diff
46 id: "user-1",
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
47
      email: "[email protected]",
Open commit View diff
47 email: "[email protected]",
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
48
      displayName: "Owner",
Open commit View diff
48 displayName: "Owner",
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
49
      role: "owner",
Open commit View diff
49 role: "owner",
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
50
      groupIds: []
Open commit View diff
50 groupIds: []
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
51
    });
Open commit View diff
51 });
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
52
Open commit View diff
52
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
53
    const { createApp } = await import("../app.js");
Open commit View diff
53 const { createApp } = await import("../app.js");
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
54
    const response = await request(createApp()).post("/api/auth/login").send({
Open commit View diff
54 const response = await request(createApp()).post("/api/auth/login").send({
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
55
      email: "[email protected]",
Open commit View diff
55 email: "[email protected]",
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
56
      password: "Password123!"
Open commit View diff
56 password: "Password123!"
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
57
    });
Open commit View diff
57 });
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
58
Open commit View diff
58
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
59
    expect(response.status).toBe(200);
Open commit View diff
59 expect(response.status).toBe(200);
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
60
    expect(response.body.user.email).toBe("[email protected]");
Open commit View diff
60 expect(response.body.user.email).toBe("[email protected]");
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
61
    expect(response.headers["set-cookie"]).toBeTruthy();
Open commit View diff
61 expect(response.headers["set-cookie"]).toBeTruthy();
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
62
  });
Open commit View diff
62 });
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
63
Open commit View diff
63
Alex Nord 3 months ago 462c463

Add first-run setup and gate demo seed behind config

Full commit hash
462c463a79b4fe09e752f88c5c4eca69dac468fc
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
64
  it("blocks register before initial setup is completed", async () => {
Open commit View diff
64 it("blocks register before initial setup is completed", async () => {
same change 462c463

Add first-run setup and gate demo seed behind config

Full commit hash
462c463a79b4fe09e752f88c5c4eca69dac468fc
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
65
    queryMock.mockResolvedValueOnce({
Open commit View diff
65 queryMock.mockResolvedValueOnce({
same change 462c463

Add first-run setup and gate demo seed behind config

Full commit hash
462c463a79b4fe09e752f88c5c4eca69dac468fc
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
66
      rowCount: 1,
Open commit View diff
66 rowCount: 1,
same change 462c463

Add first-run setup and gate demo seed behind config

Full commit hash
462c463a79b4fe09e752f88c5c4eca69dac468fc
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
67
      rows: [{ count: 0 }]
Open commit View diff
67 rows: [{ count: 0 }]
same change 462c463

Add first-run setup and gate demo seed behind config

Full commit hash
462c463a79b4fe09e752f88c5c4eca69dac468fc
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
68
    });
Open commit View diff
68 });
same change 462c463

Add first-run setup and gate demo seed behind config

Full commit hash
462c463a79b4fe09e752f88c5c4eca69dac468fc
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
69
Open commit View diff
69
same change 462c463

Add first-run setup and gate demo seed behind config

Full commit hash
462c463a79b4fe09e752f88c5c4eca69dac468fc
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
70
    const { createApp } = await import("../app.js");
Open commit View diff
70 const { createApp } = await import("../app.js");
same change 462c463

Add first-run setup and gate demo seed behind config

Full commit hash
462c463a79b4fe09e752f88c5c4eca69dac468fc
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
71
    const response = await request(createApp()).post("/api/auth/register").send({
Open commit View diff
71 const response = await request(createApp()).post("/api/auth/register").send({
same change 462c463

Add first-run setup and gate demo seed behind config

Full commit hash
462c463a79b4fe09e752f88c5c4eca69dac468fc
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
72
      email: "[email protected]",
Open commit View diff
72 email: "[email protected]",
same change 462c463

Add first-run setup and gate demo seed behind config

Full commit hash
462c463a79b4fe09e752f88c5c4eca69dac468fc
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
73
      password: "Password123!",
Open commit View diff
73 password: "Password123!",
same change 462c463

Add first-run setup and gate demo seed behind config

Full commit hash
462c463a79b4fe09e752f88c5c4eca69dac468fc
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
74
      displayName: "First User"
Open commit View diff
74 displayName: "First User"
same change 462c463

Add first-run setup and gate demo seed behind config

Full commit hash
462c463a79b4fe09e752f88c5c4eca69dac468fc
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
75
    });
Open commit View diff
75 });
same change 462c463

Add first-run setup and gate demo seed behind config

Full commit hash
462c463a79b4fe09e752f88c5c4eca69dac468fc
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
76
Open commit View diff
76
same change 462c463

Add first-run setup and gate demo seed behind config

Full commit hash
462c463a79b4fe09e752f88c5c4eca69dac468fc
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
77
    expect(response.status).toBe(403);
Open commit View diff
77 expect(response.status).toBe(403);
same change 462c463

Add first-run setup and gate demo seed behind config

Full commit hash
462c463a79b4fe09e752f88c5c4eca69dac468fc
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
78
    expect(response.body.error).toContain("initial Ledger setup");
Open commit View diff
78 expect(response.body.error).toContain("initial Ledger setup");
same change 462c463

Add first-run setup and gate demo seed behind config

Full commit hash
462c463a79b4fe09e752f88c5c4eca69dac468fc
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
79
  });
Open commit View diff
79 });
same change 462c463

Add first-run setup and gate demo seed behind config

Full commit hash
462c463a79b4fe09e752f88c5c4eca69dac468fc
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
80
Open commit View diff
80
Alex Nord 3 months ago 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
81
  it("creates feedback records", async () => {
Open commit View diff
81 it("creates feedback records", async () => {
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
82
    queryMock
Open commit View diff
82 queryMock
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
83
      .mockResolvedValueOnce({ rowCount: 1, rows: [{ id: "feedback-1" }] })
Open commit View diff
83 .mockResolvedValueOnce({ rowCount: 1, rows: [{ id: "feedback-1" }] })
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
84
      .mockResolvedValueOnce({ rowCount: 1, rows: [] });
Open commit View diff
84 .mockResolvedValueOnce({ rowCount: 1, rows: [] });
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
85
Open commit View diff
85
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
86
    const { createApp } = await import("../app.js");
Open commit View diff
86 const { createApp } = await import("../app.js");
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
87
    const response = await request(createApp()).post("/api/feedback").send({
Open commit View diff
87 const response = await request(createApp()).post("/api/feedback").send({
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
88
      pageId: "27ef6842-a7e5-41ab-a18a-f2d0ca9d1d85",
Open commit View diff
88 pageId: "27ef6842-a7e5-41ab-a18a-f2d0ca9d1d85",
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
89
      revisionId: "8f8381fd-e2d3-4093-a2c6-59c59f119abc",
Open commit View diff
89 revisionId: "8f8381fd-e2d3-4093-a2c6-59c59f119abc",
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
90
      helpful: true,
Open commit View diff
90 helpful: true,
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
91
      comment: "Solved it"
Open commit View diff
91 comment: "Solved it"
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
92
    });
Open commit View diff
92 });
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
93
Open commit View diff
93
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
94
    expect(response.status).toBe(201);
Open commit View diff
94 expect(response.status).toBe(201);
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
95
    expect(response.body.feedbackId).toBe("feedback-1");
Open commit View diff
95 expect(response.body.feedbackId).toBe("feedback-1");
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
96
    expect(enqueueWebhookEvent).toHaveBeenCalledWith(
Open commit View diff
96 expect(enqueueWebhookEvent).toHaveBeenCalledWith(
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
97
      "feedback.created",
Open commit View diff
97 "feedback.created",
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
98
      expect.objectContaining({ feedbackId: "feedback-1" })
Open commit View diff
98 expect.objectContaining({ feedbackId: "feedback-1" })
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
99
    );
Open commit View diff
99 );
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
100
  });
Open commit View diff
100 });
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
101
});
Open commit View diff
101 });