meta {
  name: POST craft deny unknown recipe
  type: http
  seq: 2
}

docs {
  NEO-70: unknown recipeId denies with unknown_recipe.
}

post {
  url: {{baseUrl}}/game/players/{{playerId}}/craft
  body: json
  auth: none
}

headers {
  content-type: application/json
}

body:json {
  {
    "schemaVersion": 1,
    "recipeId": "not_a_real_recipe"
  }
}

tests {
  test("denies with unknown_recipe", function () {
    expect(res.getStatus()).to.equal(200);
    const body = res.getBody();
    expect(body.schemaVersion).to.equal(1);
    expect(body.success).to.equal(false);
    expect(body.reasonCode).to.equal("unknown_recipe");
    expect(body.inputsConsumed).to.be.an("array").that.is.empty;
    expect(body.outputsGranted).to.be.an("array").that.is.empty;
    expect(body.xpGrantSummary).to.equal(null);
  });
}
