DefinitelyTyped/types/testingbot-api/testingbot-api-tests.ts
2017-06-21 10:38:43 +02:00

22 lines
343 B
TypeScript

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