@congminh1254/shopee-sdk
Version:
Shopee SDK maintaining by community
23 lines • 929 B
JavaScript
import { describe, it, expect, beforeAll } from "@jest/globals";
import { setupIntegrationTest } from "./setup.js";
const { runTests, initSdk } = setupIntegrationTest();
(runTests ? describe : describe.skip)("ShopeeSDK ShopManager Sandbox Integration Tests", () => {
let sdk;
beforeAll(async () => {
sdk = await initSdk();
});
it("should retrieve shop info details", async () => {
const shopInfo = await sdk.shop.getShopInfo();
expect(shopInfo).toBeDefined();
expect(shopInfo.request_id).toBeDefined();
if (shopInfo.shop_name) {
expect(typeof shopInfo.shop_name).toBe("string");
}
});
it("should retrieve shop profile details", async () => {
const profile = await sdk.shop.getProfile();
expect(profile).toBeDefined();
expect(profile.request_id).toBeDefined();
});
});
//# sourceMappingURL=shop.integration.test.js.map