Smog checks have multiple components that your vehicle must pass in order to pass the test:
Visual inspection of the emissions control components and systems
Functional inspection of the vehicle’s check engine light, ignition timing, exhaust gas recirculation system, fuel evaporative system, and visible smoke.
Functional inspection of the vehicle’s On-Board Diagnostic or OBD system.
Tailpipe emissions inspection.