Mock utilities for nodejs web apps testing