Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it("basic", function () {
expect(locateClientTools).to.be.a("function");
return locateClientTools().then(clienttools => {
}).catch(e => {
// No eclcc on travis...
});
});
function logVersion(build: string): Promise {
return locateClientTools("", build).then(ct => {
return ct.version().then(version => {
console.log(`${build} => ${version.toString()}`);
});
});
}
it("end2end", function () {
return locateClientTools(undefined, undefined, ".").then((clientTools) => {
return clientTools.createArchive("./src/clienttools/some.ecl");
}).then(archive => {
return Workunit.submit({ baseUrl: ESP_URL }, "hthor", archive.content);
}).then((wu) => {
return wu.watchUntilComplete();
}).then((wu) => {
return wu.fetchResults().then((results) => {
return results[0].fetchRows();
}).then((rows) => {
return wu;
});
}).then((wu) => {
return wu.delete();
});
});