fix: preserve blank CVs and reliable editor undo
This commit is contained in:
@@ -364,6 +364,20 @@ public sealed class ApplicationIntelligenceTests
|
||||
Assert.Empty(match.RelevantExperience);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task Match_does_not_inherit_experience_from_an_explicit_blank_cv()
|
||||
{
|
||||
var (db, intelligence, _) = New("user-1");
|
||||
await using var dispose = db;
|
||||
var job = await SeedJobAsync(db, "user-1");
|
||||
await SeedProfileAsync(db, "user-1");
|
||||
await AttachCvAsync(db, "user-1", job.Id, CvVariantSettingsJson.Deserialize("{\"sectionsExplicit\":true,\"includeProfileContact\":false,\"sections\":[]}"));
|
||||
var match = await intelligence.MatchAsync("user-1", job.Id, default);
|
||||
Assert.True(match!.HasSelectedCv);
|
||||
Assert.Empty(match.RelevantExperience);
|
||||
Assert.Empty(match.RelevantProjects);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task Match_is_not_readable_for_another_users_application()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user