mirror of
https://github.com/eliasrenman/gardentron.git
synced 2026-03-16 20:46:07 +01:00
chore: setup featherjs project
This commit is contained in:
18
server/test/client.test.ts
Normal file
18
server/test/client.test.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
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)
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user