Browse Source
enhance(test): Drop pessimistic printing of logs that shouldn't be there
This test code is unnecessary in the common case and can be revived if the test
fails.
renovate/lint-staged-8.x
Ben Woosley
7 years ago
No known key found for this signature in database
GPG Key ID: 6EE5F3785F78B345
1 changed files with
0 additions and
6 deletions
-
test/e2e/e2e.spec.js
|
@ -30,12 +30,6 @@ describe('main window', function spec() { |
|
|
it('should haven\'t any logs in console of main window', async () => { |
|
|
it('should haven\'t any logs in console of main window', async () => { |
|
|
const { client } = this.app |
|
|
const { client } = this.app |
|
|
const logs = await client.getRenderProcessLogs() |
|
|
const logs = await client.getRenderProcessLogs() |
|
|
// Print renderer process logs
|
|
|
|
|
|
logs.forEach((log) => { |
|
|
|
|
|
console.log(log.message) |
|
|
|
|
|
console.log(log.source) |
|
|
|
|
|
console.log(log.level) |
|
|
|
|
|
}) |
|
|
|
|
|
expect(logs).toHaveLength(0) |
|
|
expect(logs).toHaveLength(0) |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}) |
|
|