I've the feeling this it should be split:

* it "shouldn't error"

* it "should send the detection code to the browser"

I feel  like actually this case is expecting no errors, but I don't see how it is verifying which really the detection code has been turned back.