@mytmpvpn/mytmpvpn-client
Version:
MyTmpVpn Client Library
21 lines (20 loc) • 814 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const appconfig = require("../src/appconfig");
const common_1 = require("./common");
describe('Testing peanuts APIs', () => {
var client;
const appConfig = appconfig.loadDefaultAppConfig();
const userProfile = (0, common_1.createUserProfile)();
beforeAll(async () => {
client = await (0, common_1.createAuthUser)(appConfig, userProfile);
});
afterAll(async () => {
await (0, common_1.deleteCleanUpAllAndDeleteAuthUser)(client, appConfig, userProfile);
});
it("should get the peanuts balance", async () => {
const peanutsBalance = await client.getPeanutsBalance();
expect(peanutsBalance).toBeDefined();
expect(Number(peanutsBalance)).toBeGreaterThan(1);
});
});