Any way to test a cdi for a lexmoto lsm 125, as i think mine is knackard as it wont start and is no spark,

i was checking the wires on the back of the ignition and i seen a spark from the connecter didnt think anything of it and no it dont start

need help as dont fancy paying 45 quid and its not that problem