stock-api/test/stocks/base/index.test.ts

17 lines
478 B
TypeScript
Raw Normal View History

// Stock
const Base = require("stocks/base").default;
describe("【基础】股票代码接口", () => {
it("需要获取的股票代码", async () => {
await expect(new Base().getStock("SZ000000"))
.rejects
.toThrow(new Error("未实现获取股票数据"));
});
2020-08-20 01:55:44 +08:00
it("需要获取的股票代码组", async () => {
await expect(new Base().getStocks(["SZ000000"]))
.rejects
2020-08-20 01:55:44 +08:00
.toThrow(new Error("未实现获取股票数据组"));
});
});