-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathapi_test.spec.ts
35 lines (30 loc) · 1.04 KB
/
api_test.spec.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/**
* ipfs-search API
* Search files and directories on the [Interplanetary Filesystem](https://ipfs.io/) through the [ipfs-search.com](https://ipfs-search.com) search API.
*
* OpenAPI spec version: 1.0.2
* Contact: [email protected]
*
* NOTE: This file is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the file manually.
*/
import * as api from "./api"
import { Configuration } from "./configuration"
const config: Configuration = {}
describe("DefaultApi", () => {
let instance: api.DefaultApi
beforeEach(function() {
instance = new api.DefaultApi(config)
});
test("metadatahashGet", () => {
const hash: api.Hash = "QmcDCte64xtxqTVzdWnT5MG9yi3dFsNuLZjAyess4RJFWc"
return expect(instance.metadatahashGet(hash, {})).resolves.toBeTruthy()
})
test("searchGet", () => {
const q: string = "q_example"
const type: api.Type = undefined
const page: number = 56
return expect(instance.searchGet(q, type, page, {})).resolves.toBeTruthy()
})
})