How to pass assertions in JS-Mocha?

How can you pass assertions in JS-Mocha?

Hello Macy,

You can pass LambdaTest assertion in JS-Mocha. Below is the code for the same:

try {
    // some GET request
    Assert.assertEquals(ActualValue, ExpectedValue);
} catch (AssertionError e) {
    Status = "failed";
    exceptionCapture.add(e.getMessage());
    ((JavascriptExecutor) driver).executeScript("lambda-exceptions", exceptionCapture);
}