@simbachain/hardhat
Version:
Simba Chain plugin for hardhat
24 lines • 1.31 kB
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const web3_suites_1 = require("@simbachain/web3-suites");
const login_1 = __importDefault(require("../../tasks/login"));
const chai_1 = require("chai");
require("mocha");
describe('tests noninteractive login', () => {
it('org and app should be present after login', async () => {
const originalSimbaJson = web3_suites_1.SimbaConfig.ProjectConfigStore.all;
web3_suites_1.SimbaConfig.ProjectConfigStore.delete("organisation");
web3_suites_1.SimbaConfig.ProjectConfigStore.delete("application");
const org = "brendan_birch_simbachain_com";
const app = "BrendanTestApp";
await login_1.default(false, org, app);
chai_1.expect(web3_suites_1.SimbaConfig.ProjectConfigStore.get("organisation").name).to.equal(org);
chai_1.expect(web3_suites_1.SimbaConfig.ProjectConfigStore.get("application").name).to.equal(app);
web3_suites_1.SimbaConfig.ProjectConfigStore.clear();
web3_suites_1.SimbaConfig.ProjectConfigStore.set(originalSimbaJson);
}).timeout(10000);
});
//# sourceMappingURL=test_noninteractive_login.js.map