// used for tests to validate if the parser sets all required fields correctly. Adds sample IDs and Dates to the findings which would normally be set by the parser-sdk.
exportasyncfunctionvalidateParser(findings){
constsampleScan={
metadata: {
creationTimestamp: newDate().toISOString(),
name: "sample-scan-name",
namespace: "sample-namespace",
},
spec: {
scanType: "sample-scan-type",
},
};
// add sample IDs and Dates only if the findings Array is not empty