How to pass assertions in JS-Nightwatch?

How can I pass assertions in JS-Nightwatch?

Hello Macy,

You can pass LambdaTest assertion in JS-Nighwatch

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);
}