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

Hide test internals. Fixes #252. #286

Merged
merged 1 commit into from
Nov 30, 2015

Conversation

jamestalmage
Copy link
Contributor

I considered the delegates module, but that still requires exposing the Test
object itself as a member of api, and does not bind this for the exposed
functions.

Fixes #252.

return self[name];
}
});
}, this);
Copy link
Member

Choose a reason for hiding this comment

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

This this is moot.

@sindresorhus
Copy link
Member

Generally looks good to me.

@@ -230,3 +199,60 @@ Test.prototype.exit = function () {
});
}
};

Test.prototype.publicApi = function () {
Copy link
Member

Choose a reason for hiding this comment

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

Maybe make this _publicApi? I don't see why anyone would need it.

@jamestalmage jamestalmage force-pushed the hide-test-internals branch 3 times, most recently from e673e40 to c5f2ac2 Compare November 30, 2015 09:22
jamestalmage added a commit that referenced this pull request Nov 30, 2015
@jamestalmage jamestalmage merged commit eaf3e0f into avajs:master Nov 30, 2015
@jamestalmage jamestalmage deleted the hide-test-internals branch November 30, 2015 10:19
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