client.test.ts 453 B

123456789101112131415161718
  1. import assert from 'assert'
  2. import axios from 'axios'
  3. import type { Server } from 'http'
  4. import { app } from '../src/app'
  5. import { createClient } from '../src/client'
  6. import rest from '@feathersjs/rest-client'
  7. const port = app.get('port')
  8. const appUrl = `http://${app.get('host')}:${port}`
  9. describe('client tests', () => {
  10. const client = createClient(rest(appUrl).axios(axios))
  11. it('initialized the client', () => {
  12. assert.ok(client)
  13. })
  14. })