Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Test coverage for Gateways Controllers #1167

Merged
merged 40 commits into from
Mar 2, 2015
Merged

Test coverage for Gateways Controllers #1167

merged 40 commits into from
Mar 2, 2015

Conversation

gterzian
Copy link
Contributor

Work in progress

I'll also try to write a failing test for #1166 (and perhaps point to a fix)

@jedmccaleb jedmccaleb added the pr label Feb 21, 2015
@@ -47,6 +47,7 @@ sc.service('Gateways', function($q, $analytics, session, StellarNetwork, rpStell

Gateways.remove = function(gateway) {
gateway.status = "removing";
walletGateways()[gateway.domain].status = "removing";
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this just matches what goes on in the 'add' method. Without this the tests would not pass (unless I would beforehand set the status of the gateway in the mocked out session to 'removing')

@gterzian
Copy link
Contributor Author

@nullstyle Ok this one is good to go on my side. Just made one little change to the Gateways service(see line comment at #1167 (diff)).

gterzian referenced this pull request Feb 27, 2015
@nullstyle
Copy link
Contributor

👍

nullstyle added a commit that referenced this pull request Mar 2, 2015
Test coverage for Gateways Controllers
@nullstyle nullstyle merged commit 2802c39 into stellar-deprecated:master Mar 2, 2015
@nullstyle nullstyle removed the pr label Mar 2, 2015
@irisli irisli added the pr label Mar 2, 2015
@bekkibolthouse
Copy link
Contributor

@gterzian thanks!

@nullstyle
Copy link
Contributor

Whoops, yeah I forgot to send thanks. Thanks @gterzian!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants