Fix Peec team bounds regression assertion
This commit is contained in:
@@ -151,7 +151,14 @@ test("retracted ARR and projected margins remain excluded", () => {
|
|||||||
const forecast = snapshot.observations.find((o) => o.kind === "非GAAP毛利率预期")!;
|
const forecast = snapshot.observations.find((o) => o.kind === "非GAAP毛利率预期")!;
|
||||||
assert.equal(forecast.selection, "excluded");
|
assert.equal(forecast.selection, "excluded");
|
||||||
const peec = snapshot.companies.find((c) => c.name === "Peec AI")!;
|
const peec = snapshot.companies.find((c) => c.name === "Peec AI")!;
|
||||||
assert.equal(peec.teamBound, ">");
|
assert.equal(peec.team, 100);
|
||||||
|
assert.equal(peec.teamBound, "≥");
|
||||||
|
const currentTeam = snapshot.observations.find((o) => o.id === "PEEC-JOB-TEAM")!;
|
||||||
|
assert.equal(currentTeam.value, peec.team);
|
||||||
|
assert.equal(currentTeam.bound, peec.teamBound);
|
||||||
|
const historicalTeam = snapshot.observations.find((o) => o.id === "O067")!;
|
||||||
|
assert.equal(historicalTeam.value, 70);
|
||||||
|
assert.equal(historicalTeam.bound, ">");
|
||||||
assert.equal(snapshot.observations.filter((o) => o.company === peec.id && o.selection === "signal").length, 1);
|
assert.equal(snapshot.observations.filter((o) => o.company === peec.id && o.selection === "signal").length, 1);
|
||||||
assert.ok(snapshot.observations.some((o) => o.company === peec.id && o.selection === "historical-estimate"));
|
assert.ok(snapshot.observations.some((o) => o.company === peec.id && o.selection === "historical-estimate"));
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user