DefinitelyTyped/types/testingbot-api/testingbot-api-tests.ts
2018-02-06 10:31:25 -08:00

25 lines
428 B
TypeScript

import TestingBot = require('testingbot-api');
const sessionId = '123';
const tb = new TestingBot({
api_key: 'api-key',
api_secret: 'api-secret'
});
function noop(error: any, responseBody: any) {
console.log(error);
console.log(responseBody);
}
tb.updateUserInfo({
email: 'new-email'
}, noop);
tb.getBrowsers(noop, 'webdriver');
tb.updateTest({
'test[name]': 'test',
build: '01'
}, sessionId);