Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('should successfully login with valid credentials', async function() {
this.timeout(1000 * 300);
this.slow(1000 * 30);
const defaultScratchOrg = await core.Org.create({});
const ux = await UX.create();
const bf = new Browserforce(defaultScratchOrg, ux.cli);
await bf.login();
await bf.logout();
assert(true);
});
it('should determine an instance domain for a scratch org with my domain', async function() {
this.timeout(1000 * 300);
this.slow(1000 * 30);
const defaultScratchOrg = await core.Org.create({});
const ux = await UX.create();
const bf = new Browserforce(defaultScratchOrg, ux.cli);
await bf.login();
const instanceDomain = bf.getInstanceDomain();
assert.notDeepEqual(null, instanceDomain);
await bf.logout();
});
});