Skip to content

Replace deprecated sinon reset() call with resetHistory() - #9348

Merged
skjnldsv merged 1 commit into
masterfrom
fix-js-tests
Apr 30, 2018
Merged

Replace deprecated sinon reset() call with resetHistory()#9348
skjnldsv merged 1 commit into
masterfrom
fix-js-tests

Conversation

@juliusknorr

Copy link
Copy Markdown
Member

This fixes the jsunit CI error that came when it was run with sinon>5.0.0 which was release 3 days ago:

FAILED
TypeError: undefined is not a function (evaluating 'showNotificationSpy.reset()') in settings/tests/js/users/deleteHandlerSpec.js (line 82)
settings/tests/js/users/deleteHandlerSpec.js:82:28

See sinonjs/sinon@88e6e5f

Signed-off-by: Julius Härtl <jus@bitgrid.net>

@skjnldsvskjnldsv left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice catch :)

@codecov

codecovBot commented Apr 30, 2018

Copy link
Copy Markdown

Codecov Report

Merging #9348 into master will decrease coverage by <.01%.
The diff coverage is n/a.

@@ Coverage Diff @@## master #9348 +/- ##
============================================
- Coverage 51.93% 51.92% -0.01% 
Complexity 25394 25394 ============================================
Files 1608 1608 Lines 95444 95444 Branches 1393 1393 ============================================
- Hits 49566 49561 -5 - Misses 45878 45883 +5
Impacted FilesCoverage ΔComplexity Δ
lib/private/Files/Cache/Propagator.php94.93% <0%> (-1.27%)16% <0%> (ø)
core/js/js.js65.41% <0%> (-0.56%)0% <0%> (ø)
apps/files_trashbin/lib/Trashbin.php72.7% <0%> (+0.24%)136% <0%> (ø)⬇️

@ChristophWurstChristophWurst left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@skjnldsvskjnldsv added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Apr 30, 2018
@skjnldsv
skjnldsv merged commit 49f26d1 into masterApr 30, 2018
@skjnldsv
skjnldsv deleted the fix-js-tests branch April 30, 2018 12:54
@juliusknorr

Copy link
Copy Markdown
MemberAuthor

stable13 #9358
stable12 #9359

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to releaseReady to be released and/or waiting for tests to finishbug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@juliusknorr@ChristophWurst@skjnldsv@MorrisJobke