text: /* eslint-env mocha */
  const assert = require('assert')
  const TestHelper = require('../../../../test-helper.js')
  
  describe('/api/administrator/reset-codes-count', () => {
    describe('returns', () => {
      it('integer', async () => {
        const administrator = await TestHelper.createOwner()
        for (let i = 0, len = global.pageSize + 1; i < len; i++) {
          const user = await TestHelper.createUser()
          await TestHelper.createResetCode(user)
        }
        const req = TestHelper.createRequest('/api/administrator/reset-codes-count')
        req.account = administrator.account
        req.session = administrator.session
        req.filename = __filename
        req.saveResponse = true
        const result = await req.get()
        assert.strictEqual(result, global.pageSize + 1)
      })
    })
  })
  