Custom Metrics on NodeJS wrapper

Hi there, I’m trying to change some HTML report in order to check threshold and compare with expected metrics.
For example:


Largest Contentful Paint here is expected bussiness behaviour, so I’d like to see green in the number, and report it as passed.
This is the code I have now but, it doesn’t work.

const script = wpt.scriptToString(market)

const options = {
    firstViewOnly: true,
    video: true,

    medianMetric: 'TTFB',

    customMetrics: [
      {id: 'speed_Index', name: 'Speed Index', value: 1, op: '<=' },
      {id: 'ttfb_start', name: 'TTFB', value: 1, op: '<=' },
      {id: 'largest-contentful-paint', name: 'Largest Contentful Paint', value: 1, op: '<=' },
      {id: 'first-contentful-paint', name: 'First Contentful Paint', value: 1, op: '<=' },
    ],
}

wpt.runTest(script, options, (err, data) => {
    err ? console.log(err) : console.log("");
}