-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Conversation
@@ -8,6 +8,12 @@ var jsface = require("jsface"), | |||
*/ | |||
var Logger = jsface.Class({ | |||
$singleton: true, | |||
|
|||
symbols: { | |||
err: (process.platform === "win32") ? "\u00D7 " : "✗ ", |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 ?
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
.
@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 | ||
}, |
There was a problem hiding this comment.
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?
@viig99 Refactored as per your comments. Now merge fast or 👊 |
No description provided.