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

Symbols on win32. #66

Merged
merged 4 commits into from
May 3, 2014
Merged

Symbols on win32. #66

merged 4 commits into from
May 3, 2014

Conversation

prakhar1989
Copy link
Contributor

No description provided.

@@ -8,6 +8,12 @@ var jsface = require("jsface"),
*/
var Logger = jsface.Class({
$singleton: true,

symbols: {
err: (process.platform === "win32") ? "\u00D7 " : "✗ ",
Copy link
Contributor

Choose a reason for hiding this comment

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

This makes the check every time when printing out a log, can't we make the check once in the Helper using a export, to make sure its just loaded once? Like what mocha has done.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So now even a if else on V8 is slow?

Copy link
Contributor

Choose a reason for hiding this comment

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

Best practices, why load it every time, if you can do it only once ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So a new file / module that just exports symbols?

Copy link
Contributor

Choose a reason for hiding this comment

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

Can't Helper do this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok. I will add it in the helper.
On May 2, 2014 5:49 PM, "Arjun Variar" [email protected] wrote:

In src/utilities/Logger.js:

@@ -8,6 +8,12 @@ var jsface = require("jsface"),
*/
var Logger = jsface.Class({
$singleton: true,
+

  • symbols: {
  •   err: (process.platform === "win32") ? "\u00D7 " : "✗ ",
    

Can't Helper do this?


Reply to this email directly or view it on GitHubhttps://github.com//pull/66/files#r12231810
.

@prakhar1989
Copy link
Contributor Author

@viig99 Added the ability to run tests on the request object. Test cases also attached.

headers: request.transformed.headers,
data: request.transformed.data,
form: request.transformed.form
},
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@a85: These is the request object that the user will be able to use in his tests. Is this okay?

@prakhar1989
Copy link
Contributor Author

@viig99 Refactored as per your comments. Now merge fast or 👊

viig99 added a commit that referenced this pull request May 3, 2014
@viig99 viig99 merged commit d1fa272 into postmanlabs:master May 3, 2014
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