blakehaswell/mongoose-unique-validator — pull request #19 by justin-lau (2014-12-28 15:46:57+00:00)
Title: Added test cases for models that has sparse indices, see #12.

The newly created test cases make sure `unique` indices with `sparse` option set to `true` works as expected.