meta {
  name: GET gig progression
  type: http
  seq: 1
}

docs {
  NEO-44: prototype main gig breach; xp 0 on fresh in-memory server (Postgres may retain prior totals until reset).
}

get {
  url: {{baseUrl}}/game/players/dev-local-1/gig-progression
  body: none
  auth: none
}

tests {
  test("returns 200 JSON with schema v1 and breach row", function () {
    expect(res.getStatus()).to.equal(200);
    expect(res.getHeader("content-type")).to.contain("application/json");
    const body = res.getBody();
    expect(body.schemaVersion).to.equal(1);
    expect(body.playerId).to.equal("dev-local-1");
    expect(body.mainGigId).to.equal("breach");
    expect(body.gigs).to.be.an("array");
    expect(body.gigs.length).to.equal(1);
    const breach = body.gigs[0];
    expect(breach.id).to.equal("breach");
    expect(breach.xp).to.be.a("number");
    expect(breach.level).to.equal(1);
  });
}
