Skip to content

Commit

Permalink
add clarifying comments to test helper functions
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonic committed Oct 15, 2019
1 parent 846e1b5 commit 9369f8c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ function array_contains_object (arr, obj) {
return false;
}

// recursively call quotes.random until a collision is found:
function get_random_quote_until_collision (random_quotes_list) {
random_quote = quotes.random();
if(array_contains_object(random_quotes_list, random_quote)) {
Expand Down

0 comments on commit 9369f8c

Please sign in to comment.