Hard to do with those tiny engines but get an inline spark tester , the ones with red neon tubes are the easiest to use.
And a can of starting fluid.
Start the engine and watch the flashes. flashes stop before engine = electrical problem.
If spark looks good start the engine without the air filter on and as it is dieing, give it a SHORT burst of starting fluid.
If you can keep it running by giving it little SHORT shots of starter fluid then you have a fuel supply problem.
let us know how you went.