Skip to content
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

fix/add-tests-for-url-shortner-project #37588

Conversation

abbathaw
Copy link
Contributor

@abbathaw abbathaw commented Oct 28, 2019

This PR is closed after a git rebase mistake / disaster. New PR is here #39311

  • I have read freeCodeCamp's contribution guidelines.
  • My pull request has a descriptive title (not a vague title like Update index.md)
  • My pull request targets the master branch of freeCodeCamp.
  • None of my changes are plagiarized from another source without proper attribution. (I added attribution below).
  • All the files I changed are in the same world language (for example: only English changes, or only Chinese changes, etc.)
  • My changes do not use shortened URLs or affiliate links.

Closes #37305

3 of 4 tests have been copied from this location owned by christophrus and I was directed to them as per discussions in #37185.

I went through his tests and found that the example he provided to test the url body using the fcc-backend-tester was good enough to use and merge here.

The 4th test is copied from a comment by @ojeytonwilliams in the same issue above.

@abbathaw abbathaw requested a review from a team October 28, 2019 07:53
@gitpod-io
Copy link

gitpod-io bot commented Oct 28, 2019

@camperbot camperbot added language: English scope: curriculum Lessons, Challenges, Projects and other Curricular Content in curriculum directory. labels Oct 29, 2019
@PartyLich PartyLich mentioned this pull request Nov 27, 2019
13 tasks
Copy link
Member

@moT01 moT01 left a comment

Choose a reason for hiding this comment

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

Thanks for the PR @abbathaw.

The tests looks like they work, I'm not sure if we want to be attaching variables to the window object though. What do you think about that @ojeytonwilliams @RandellDawson?

.gitignore Outdated Show resolved Hide resolved
@RandellDawson
Copy link
Member

@moT01 I do not like the window properties. @abbathaw Can you not create local variables for the tests?

@RandellDawson RandellDawson added the status: waiting update To be applied to PR if a maintainer/reviewer has left a feedback and follow up is needed from OP label Mar 26, 2020
anastasiasoenjoto and others added 21 commits July 24, 2020 09:36
…eeCodeCamp#38756)

* Fix `largestPrimeFactor(8)` result
* Improve `largestPrimeFactor` performance
* Add `largestPrimeFactor(8)` test
* add: test to return early pattern

Currently no test for a = 0 or b = 0. This results in if(a<=0 || b<= 0) also being a valid solution

* fix: typo in test text

* fix: update return early pattern test

Co-authored-by: Shaun Hamilton <51722130+Sky020@users.noreply.github.com>

Co-authored-by: Shaun Hamilton <51722130+Sky020@users.noreply.github.com>
…eCamp#38500)

* changes to bfs instructions

* added description on visual representation

* Added to the animation description

* Added information about stacks in the description

* Edited description for clarity

* Edited small details for grammar and clarity

* Apply suggested wording and typo fixes

Co-authored-by: Eric Leung <eric@erictleung.com>

* Add typo fixes to BFS challenge

Co-authored-by: Kyla Yujiri <27860923+kylayujiri@users.noreply.github.com>
Co-authored-by: Eric Leung <eric@erictleung.com>
Addresses freeCodeCamp#38546 (comment) where it's pointed out that Firefox doesn't support the /s regex flag yet. This workaround matches anything that's not blank.
* Fixed a Typo in Eulers Problem 70

Line 15 should say "Find the value of <var>n</var>, 1 < <var>n</var> < 10**7, for which φ(<var>n</var>) is a permutation of <var>n</var> and the ratio <var>n</var>/φ(<var>n</var>) produces a minimum." instead of Find the value of <var>n</var>, 1 < <var>n</var> < 107, for which φ(<var>n</var>) is a permutation of <var>n</var> and the ratio <var>n</var>/φ(<var>n</var>) produces a minimum.

* Updated the Markdown 

Fixes the markdown to display proper superscript rather than just using ** to denote a superscript
* create fizzbuzz challenge

* add lesson to meta file

* update testString

* fixed changes
raisedadead and others added 28 commits July 24, 2020 09:37
Updated and unified workflows for working with various application VMs
* fix(learn): clarify description for finders keepers

Co-authored-by: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
* fix: make mongodb instructions accurate
The old message made it sound like there was a problem with the server,
even though no attempt was being made to contact it.
* Disambiguate "Priority Queue" instructions

* Add front() to solution

* Add tests for front() method

* Fix test typo

Co-authored-by: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>

Co-authored-by: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>
* feat: add resources for data analysis videos

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
* Fixed-pass-an-arrays-props

* Fixed:pass-an-array-as-props2

* Update curriculum/challenges/english/03-front-end-libraries/react/pass-an-array-as-props.english.md

Co-authored-by: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>

* Update curriculum/challenges/english/03-front-end-libraries/react/pass-an-array-as-props.english.md

Co-authored-by: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>

* Update curriculum/challenges/english/03-front-end-libraries/react/pass-an-array-as-props.english.md

Co-authored-by: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>

Co-authored-by: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>
…reeCodeCamp#38754)

* feat(interview-prep): Converting and Tranfering Rosetta challenges
* delay offline warning

* Delayed the offline warning

* delayed offline warning

* revert unwanted changes

* correct spacing

* correct spacing second time

* use let instead of var
…obally (freeCodeCamp#39296)

* feat(gitpod): Add env variables to .profile so they can be accessed globally.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: curriculum Lessons, Challenges, Projects and other Curricular Content in curriculum directory. status: waiting update To be applied to PR if a maintainer/reviewer has left a feedback and follow up is needed from OP
Projects
None yet
Development

Successfully merging this pull request may close these issues.

URL Shortener Microservice needs tests