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

adds .toggleActive method #61

Merged
merged 6 commits into from
Dec 12, 2016
Merged

adds .toggleActive method #61

merged 6 commits into from
Dec 12, 2016

Conversation

mk4111
Copy link
Collaborator

@mk4111 mk4111 commented Dec 12, 2016

adds .toggleActive method and adds tests.

Tests fail because this PR relies on #60 to be merged in first

Can remove Boom if that's preferred

method: 'GET',
url: '/getById?id=8'
}, function (res) {
t.ok(res.result, 'the toggle active function has enabled the previously inactive chal');
Copy link
Contributor

Choose a reason for hiding this comment

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

I feel like this test will always pass?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah - my bad!!

method: 'GET',
url: '/getById?id=2'
}, function (res) {
t.deepEqual(res.result, active, 'empty array returned because chal is deactivated');
Copy link
Contributor

Choose a reason for hiding this comment

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

Think there is a wrong comment on this line.

@codecov-io
Copy link

codecov-io commented Dec 12, 2016

Current coverage is 93.85% (diff: 93.75%)

Merging #61 into master will decrease coverage by <.01%

@@             master        #61   diff @@
==========================================
  Files            16         17     +1   
  Lines           212        228    +16   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
+ Hits            199        214    +15   
- Misses           13         14     +1   
  Partials          0          0          

Powered by Codecov. Last update 24201fc...22fe463

Copy link
Collaborator

@SimonLab SimonLab left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @mk4111 and @JMurphyWeb for the review 👍

@SimonLab SimonLab merged commit 0ee0c9e into master Dec 12, 2016
@SimonLab SimonLab deleted the toggle branch December 12, 2016 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants