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

root: tests #454

Merged
merged 1 commit into from Nov 24, 2015
Merged

root: tests #454

merged 1 commit into from Nov 24, 2015

Conversation

rwaldron
Copy link
Contributor

No description provided.

@rwaldron rwaldron mentioned this pull request Nov 24, 2015
};
}

S.prototype = Object.create(Emitter.prototype);
Copy link
Contributor

Choose a reason for hiding this comment

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

I've always wondered how to assign the Emitter properties to a single object instance!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Use a 🔨 !

@johnnyman727
Copy link
Contributor

@rwaldron thanks for putting this together. I got started on tests but didn't get far so this was very useful.


var opts = {};

controller.root(opts)
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm a little surprised root doesn't reject because standardTesselCommand doesn't return a Tessel.

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh I see - because standardTesselCommand returns Promise.resolve (instead of an unfulfilled promise), the whole root procedure finishes up before it gets to the shell part.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍

@johnnyman727
Copy link
Contributor

Looks great!

johnnyman727 added a commit that referenced this pull request Nov 24, 2015
@johnnyman727 johnnyman727 merged commit 00fc075 into tessel:jon-root Nov 24, 2015
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

2 participants