You should probably be using strictEqual in this switch.