Checking whether JS tests fail in Travis