object.id.Test.js 387 B

1234567891011121314151617181920
  1. /**
  2. * Object ID测试。
  3. *
  4. * author: Sand
  5. * since: 12/13/2016
  6. */
  7. "use strict";
  8. let assert = require('assert');
  9. let mongoose = require('mongoose');
  10. describe("Object Id", function () {
  11. describe("Generate 10", function () {
  12. it('ok', function (done) {
  13. for(let i = 0; i < 10; ++i)
  14. console.log(mongoose.Types.ObjectId());
  15. });
  16. });
  17. });