Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
beforeEach(() => {
jest.resetModules();
settings.networks.UnitTestNet = new rpc.Network({
name: "UnitTestNet",
extra: { neonDB: testUrl, neoscan: "http://wrongurl.com" }
});
});
beforeEach(() => {
jest.resetModules();
settings.networks.UnitTestNet = new rpc.Network({
name: "UnitTestNet",
extra: { neoscan: UnitTestNetUrl, neonDB: "http://wrongurl.com" }
});
});
beforeEach(() => {
jest.resetModules();
settings.networks.UnitTestNet = new rpc.Network({
name: "UnitTestNet",
extra: { neonDB: UnitTestNetUrl, neoscan: "http://wrongurl.com" }
});
});
public constructor(url: string) {
if (settings.networks[url] && settings.networks[url].extra.neoscan) {
this.url = settings.networks[url].extra.neoscan;
} else {
this.url = url;
}
log.info(`Created Neoscan Provider: ${this.url}`);
}
public constructor(url: string) {
if (settings.networks[url] && settings.networks[url].extra.neonDB) {
this.url = settings.networks[url].extra.neonDB;
} else {
this.url = url;
}
log.info(`Created NeonDB Provider: ${this.url}`);
}