本文整理汇总了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();
}