When a Lender performs a Quality Control review on employment they are specifically looking for employment to be covered prior to the closing of the loan. If one of the borrower’s lose their employment prior to the loan funding and that borrower’s employment is dependent on making the mortgage payment the loan should not fund. If one of the borrower’s lose their employment after the loan closes typically there is not a lot a lender can do after the fact.
They will look at all compensating factors to see if you can make the payments on your own without your spouses wages but if the payments are made on time and there are no other issues you should be fine. They may ask you if you knew your spouse would be losing the job but other than that they cannot kick you out of your home.