text: const assert = require('assert');
  const feathers = require('@feathersjs/feathers');
  const clientsBefore = require('../../src/hooks/clients-before');
  
  describe('\'clients-before\' hook', () => {
    let app;
  
    beforeEach(() => {
      app = feathers();
  
      app.use('/dummy', {
        async get(id) {
          return { id };
        }
      });
  
      app.service('dummy').hooks({
        before: clientsBefore()
      });
    });
  
    it('runs the hook', async () => {
      const result = await app.service('dummy').get('test');
      
      assert.deepEqual(result, { id: 'test' });
    });
  });
  