test: assert hashed prediction identifier format
This commit is contained in:
@@ -40,5 +40,5 @@ test('records LLM ideas as stable predictions', async (t) => {
|
||||
assert.equal(result.available, true);
|
||||
assert.equal(result.predictions.length, 1);
|
||||
assert.equal(result.predictions[0].title, 'Gold safe-haven hedge');
|
||||
assert.match(result.predictions[0].stable_id, /^prediction-/);
|
||||
assert.match(result.predictions[0].stable_id, /^[a-f0-9]{24}$/);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user