fix the JSHint error when creating the mock context.