mirror of
https://github.com/eliasrenman/gardentron.git
synced 2026-03-16 20:46:07 +01:00
19 lines
453 B
TypeScript
19 lines
453 B
TypeScript
import assert from 'assert'
|
|
import axios from 'axios'
|
|
import type { Server } from 'http'
|
|
import { app } from '../src/app'
|
|
import { createClient } from '../src/client'
|
|
|
|
import rest from '@feathersjs/rest-client'
|
|
|
|
const port = app.get('port')
|
|
const appUrl = `http://${app.get('host')}:${port}`
|
|
|
|
describe('client tests', () => {
|
|
const client = createClient(rest(appUrl).axios(axios))
|
|
|
|
it('initialized the client', () => {
|
|
assert.ok(client)
|
|
})
|
|
})
|