text: 'use strict'
  
  const apiserver = require('../../test/server')
  const headers = require('../../test/headers')
  
  var chai = require('chai')
  var dirtyChai = require('dirty-chai')
  var expect = chai.expect
  
  chai.use(dirtyChai)
  
  describe('ROUTE: /admin', () => {
    it('should say action=completed', (done) => {
      apiserver
        .get('/admin')
        .set('Authorization', headers.Authorization)
        .expect('Content-type', /json/)
        .expect(200)
        .end((err, res) => {
          if (err) {
            console.log(err.message)
            return done(new Error('Supertest encountered an error'))
          }
  
          expect(res.body.error).to.be.undefined()
          expect(res.body.action).to.equal('completed')
  
          done()
        })
    })
  })
  