-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update like_spec.js #11524
update like_spec.js #11524
Conversation
The code was in var an es5 way of declaring a variable changed it to const
Thanks for opening this pull request! This space is protected by our Code of Conduct - and we're here to help. |
This pull request generated screenshots of many common pages in the running app. You should be able to download and view them here: |
Hi @ijayhub, can you add a link to the issue?
|
The code was in var an es5 way of declaring a variable changed it to const
okay |
This pull request generated screenshots of many common pages in the running app. You should be able to download and view them here: |
The code was in var an es5 way of declaring a variable changed it to let
This pull request generated screenshots of many common pages in the running app. You should be able to download and view them here: |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #11524 +/- ##
==========================================
+ Coverage 76.71% 83.33% +6.61%
==========================================
Files 93 93
Lines 5772 5772
==========================================
+ Hits 4428 4810 +382
+ Misses 1344 962 -382
|
Hi @ijayhub, the link you added is for this PR. I'm asking for the issue this PR was opened for. Thanks! |
hello @TildaDares , I didn't fix it from an issue. It was just an improvement I made while going through the code. |
Hi @ijayhub, we prefer to create issues first so that other contributors don't try to solve the same issues. It also gives the maintainers time to review the issue before you open a PR for it. |
For example, it looks like @Josephsanya has opened a PR for one of the files you've added in this PR #11526. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feel free to just click the Commit suggestion
button. Thanks!
spec/javascripts/like_spec.js
Outdated
@@ -19,12 +19,12 @@ describe("Like Button", function () { | |||
ajaxStub = sinon.stub($, 'ajax', function (object) { | |||
response = object.url === '/likes/node/1/create' ? '4' : 'none' | |||
|
|||
var d = $.Deferred(); | |||
let d = $.Deferred(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let d = $.Deferred(); | |
const d = $.Deferred(); |
spec/javascripts/like_spec.js
Outdated
@@ -65,7 +65,7 @@ describe("Like Button", function () { | |||
ajaxStub = sinon.stub($, 'ajax', function (object) { | |||
response = object.url === '/likes/node/1/delete' ? '4' : 'none' | |||
|
|||
var d = $.Deferred(); | |||
let d = $.Deferred(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let d = $.Deferred(); | |
const d = $.Deferred(); |
spec/javascripts/like_spec.js
Outdated
@@ -44,7 +44,7 @@ describe("Like Button", function () { | |||
// console.log('Failed to fake response to:', object.url); | |||
// } | |||
|
|||
var d = $.Deferred(); | |||
let d = $.Deferred(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let d = $.Deferred(); | |
const d = $.Deferred(); |
Thank u
…On Mon, Oct 24, 2022, 3:49 AM Jhowsef ***@***.***> wrote:
Hi @ijayhub <https://github.com/ijayhub>
Here is the link to the issue
#11537 <#11537>
—
Reply to this email directly, view it on GitHub
<#11524 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APYOQHNT5CR6HWROSCHLP4LWEX2LHANCNFSM6AAAAAARK77WOQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Hey @ijayhub |
fix: modified
modified |
This pull request generated screenshots of many common pages in the running app. You should be able to download and view them here: |
modified |
Hi @ijayhub, can you make the changes I suggested above? Thank you! |
Code Climate has analyzed commit 6d8d426 and detected 0 issues on this pull request. View more on Code Climate. |
This pull request generated screenshots of many common pages in the running app. You should be able to download and view them here: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing @ijayhub. Thank you!
Congrats on merging your first pull request! 🙌🎉⚡️ Help others take their first stepNow that you've merged your first pull request, you're the perfect person to help someone else out with this challenging first step. 🙌 Try looking at this list of `first-timers-only` issues, and see if someone else is waiting for feedback, or even stuck! 😕 People often get stuck at the same steps, so you might be able to help someone get unstuck, or help lead them to some documentation that'd help. Reach out and be encouraging and friendly! 😄 🎉 Read about how to help support another newcomer here, or find other ways to offer mutual support here. You can also join our Gitter channel to connect with other contributors 📥 |
The code was in var an es5 way of declaring a variable changed it to let/const
Fixes #11537 (#11537)
Make sure these boxes are checked before your pull request (PR) is ready to be reviewed and merged. Thanks!
rake test
@publiclab/reviewers
for help, in a comment below