本文整理匯總了TypeScript中protractor-browser-logs.default函數的典型用法代碼示例。如果您正苦於以下問題:TypeScript default函數的具體用法?TypeScript default怎麽用?TypeScript default使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了default函數的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: testMatchFunction
function testMatchFunction() {
const logs = browserLogs(browser);
const filter = (entry: Entry) => entry.message === "foo";
logs.ignore(filter);
logs.expect(filter);
}
示例2: testLogLevels
function testLogLevels() {
const logs = browserLogs(browser);
logs.ignore(logs.ERROR);
logs.expect(logs.WARNING);
logs.ignore(logs.DEBUG);
logs.expect(logs.INFO);
logs.ignore(logs.LOG);
}
示例3: testVerify
function testVerify() {
const logs = browserLogs(browser);
logs.verify();
}
示例4: testLogs
function testLogs() {
const logs = browserLogs(browser);
const entries: Entry[] = logs.logs();
}
示例5: testReset
function testReset() {
const logs = browserLogs(browser);
logs.reset();
}
示例6: testString
function testString() {
const logs = browserLogs(browser);
logs.ignore('foo');
logs.expect('foo');
}
示例7: testRegExp
function testRegExp() {
const logs = browserLogs(browser);
logs.ignore(/foo/i);
logs.expect(new RegExp('/foo/i'));
}
示例8: testPredicateFunctions
function testPredicateFunctions() {
const logs = browserLogs(browser);
logs.ignore(logs.or(logs.ERROR, logs.WARNING));
logs.expect(logs.and(logs.DEBUG, logs.INFO));
}
示例9: testCreateFunction
function testCreateFunction() {
let logs = browserLogs(browser);
logs = browserLogs(browser, { reporters: [] });
logs = browserLogs(browser, { reporters: [ colored ] });
}
示例10: testLogs
function testLogs() {
let logs = browserLogs(browser);
let entries: Entry[] = logs.logs();
}