mirror of
https://github.com/zhangxiangliang/stock-api.git
synced 2025-01-23 22:40:21 +08:00
17 lines
478 B
TypeScript
17 lines
478 B
TypeScript
// Stock
|
|
const Base = require("stocks/base").default;
|
|
|
|
describe("【基础】股票代码接口", () => {
|
|
it("需要获取的股票代码", async () => {
|
|
await expect(new Base().getStock("SZ000000"))
|
|
.rejects
|
|
.toThrow(new Error("未实现获取股票数据"));
|
|
});
|
|
|
|
it("需要获取的股票组代码", async () => {
|
|
await expect(new Base().getStocks(["SZ000000"]))
|
|
.rejects
|
|
.toThrow(new Error("未实现获取股票组数据"));
|
|
});
|
|
});
|