update codebase

This commit is contained in:
Bogdan Fazakas 2023-01-11 10:49:16 +02:00
parent ebe00a7e95
commit 464f83822c
2 changed files with 4 additions and 4 deletions

View File

@ -28,7 +28,7 @@ export async function getEnsTextRecords(
return records return records
} }
export default async function ensTextApi( export async function ensTextApi(
request: VercelRequest, request: VercelRequest,
response: VercelResponse response: VercelResponse
) { ) {

View File

@ -1,7 +1,7 @@
import addressApi from '../api/address' import addressApi from '../api/address'
import nameApi from '../api/name' import nameApi from '../api/name'
import profileApi from '../api/profile' import profileApi from '../api/profile'
import textApi from '../api/text' import { ensTextApi } from '../api/text'
import { createServer } from 'vercel-node-server' import { createServer } from 'vercel-node-server'
import listen from 'test-listen' import listen from 'test-listen'
// import express from 'express' // import express from 'express'
@ -42,7 +42,7 @@ describe('Testing ENS proxy API endpoints', function () {
assert(response.data.name === name) assert(response.data.name === name)
}) })
it('Requesting text records should return the expected response', async () => { it('Requesting text records should return the expected response', async () => {
server = createServer(textApi) server = createServer(ensTextApi)
url = await listen(server) url = await listen(server)
const response = await axios.get(url, { const response = await axios.get(url, {
params: { params: {
@ -115,7 +115,7 @@ describe('Testing ENS proxy API endpoints', function () {
assert(response.status === 200) assert(response.status === 200)
}) })
it('Requesting text records should return status 200 with invalid name', async () => { it('Requesting text records should return status 200 with invalid name', async () => {
server = createServer(textApi) server = createServer(ensTextApi)
url = await listen(server) url = await listen(server)
const response = await axios.get(url, { const response = await axios.get(url, {
params: { params: {