Skip to content

Commit 6bc2877

Browse files
committed
Remove console logging from tests
Signed-off-by: Olga Bulat <obulat@gmail.com>
1 parent 1cea58c commit 6bc2877

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed

tests/e2e/.eslintrc.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
module.exports = {
22
rules: {
3-
'no-unused-expressions': 'off',
4-
'no-console': 'off'
3+
'no-unused-expressions': 'off'
54
}
65
}

tests/unit/specs/components/SelectedLicenseCode.spec.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,8 @@ describe('SelectedLicenseCode.vue', () => {
125125
expect(generatedHtml.findAll('img')).toHaveLength(2)
126126
// There are three links: two icons and license name
127127
expect(generatedHtml.findAll('a')).toHaveLength(1)
128-
console.log(generatedHtml.find('a').attributes('href'))
129128
expect(generatedHtml.find('a').attributes('href')).toEqual('https://creativecommons.org/licenses/by/4.0/?ref=ccchooser')
130129
// check that the text is correct
131-
console.log(wrapper.vm.authorElement)
132130
// check that changing fields generate correct texts
133131
})
134132
})

tests/unit/specs/components/__snapshots__/SelectedLicenseInfo.spec.js.snap

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,12 @@
33
exports[`SelectedLicenseInfo.vue has the expected UI 1`] = `
44
<div class="selected-license-info">
55
<h4><a href="https://creativecommons.org/licenses/by/4.0/?ref=ccchooser">Attribution 4.0 International</a></h4>
6-
<p id="chooser-selected-description"><b>CC BY </b>
7-
8-
<span>
9-
10-
</span></p>
6+
<p id="chooser-selected-description"><b>CC BY </b> <span></span></p>
117
<section class="license-visual-info">
128
<ul class="license-list"><span name="highlight"><li><licenseiconography-stub iconlist="by"></licenseiconography-stub> <span class="readable-string">
139
1410
</span></li></span></ul>
15-
<div class="freeworks-status__div"><a href="https://creativecommons.org/freeworks"><img src="../assets/license-icons/fc_approved_small.png" alt=""></a></div>
11+
<div class="freeworks-status__div"><a href="https://creativecommons.org/freeworks"><img src="../assets/license-icons/fc_approved_small.png"></a></div>
1612
<p class="freeworks-status__p"><a href="https://creativecommons.org/freeworks">
1713
</a></p>
1814
</section>

0 commit comments

Comments
 (0)