A mother of two who spat in the face of a police officer after being caught with a flick-knife has learned her fate.