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

Set mock tl function #161

Merged
merged 1 commit into from
Oct 31, 2016
Merged

Set mock tl function #161

merged 1 commit into from
Oct 31, 2016

Conversation

ericsciple
Copy link
Contributor

No description provided.

@@ -18,17 +18,28 @@ export class TaskMockRunner {
this._answers = answers;
}

public setFunction(name: string, val: any) {
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 is untested. Submitting PR for discussion only at this point.

The goal of this function is to still leverage mock-task but additionally allow custom mocking for specific functions only.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

registerMockExport

if (this._answers) {
tlm.setAnswers(this._answers);

public run(noMockTask: boolean) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Also I added a bool here whether to register mock-task. What I'm thinking is, the runner is still useful for L1 scenarios where the tl would not be mocked.

@bryanmacfarlane
Copy link
Contributor

This makes sense

@ericsciple ericsciple force-pushed the users/ersciple/m108setfunction branch from 6df7975 to da68cea Compare October 26, 2016 06:46
@ericsciple
Copy link
Contributor Author

this is ready for review now

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.

2 participants