Also, battery modules can be swapped to older, more degraded ones keeping old computer (LBC) which will show history for different cell set. As a buyer you have no way to check that.
Same applicable for any battery operated EV or PHEV or Hybrid. Dodgy battery swaps in Prius/Camry Hybrid are now common. That is one of the reasons I have created that small program which works with 2D scanner to identify dodgy Prius/Camry/Lexus battery swaps.
For Nissan Leaf - the best way is to have that car you want to buy to be driven from full charge to complete battery drain recording metrics (e.g. by Leafspy or Consult3+) before start and at finish. Even if there was battery swap - that way you can at least capture performance of the battery here and now. Must have procedure for any Jap imported battery operated car IMO.