Turn your key to the "run" position with the engine off. The Check Engine light will come on and stay on, even when there are no codes. That's how they can tell. Any car with the CEL will do this.
A non-functional CEL is an automatic smog fail in CA.