{"action":"created","comment":{"url":"https://api.github.com/repos/Microsoft/TACO/pulls/comments/49778937","id":49778937,"diff_hunk":"@@ -0,0 +1,51 @@\n+/**\n+ * ******************************************************\n+ *                                                     *\n+ *   Copyright (C) Microsoft. All rights reserved.     *\n+ *                                                     *\n+ * ******************************************************\n+ */\n+\n+/// <reference path=\"../../typings/node.d.ts\"/>\n+/// <reference path=\"../../typings/should.d.ts\"/>\n+/// <reference path=\"../../typings/mocha.d.ts\"/>\n+\n+\"use strict\";\n+\n+import mocha = require (\"mocha\");\n+import os = require (\"os\");\n+import should = require (\"should\");\n+\n+import logger = require (\"../logger\");\n+import Logger = logger.Logger;\n+\n+describe(\"logger\", function (): void {\n+\n+    it(\"should support regular strings\", function (): void {\n+        verifyScenario(\"hello world\");\n+    });\n+    it(\"should support unknown tags with strings\", function (): void {\n+        verifyScenario(\"<h1>hello world</h1>\");\n+    });\n+    it(\"should support known tags with strings\", function (): void {\n+        verifyScenario(\"<helptitle>hello world</helptitle>\");\n+    });\n+    it(\"should support undefined strings\", function (): void {\n+        verifyScenario(undefined);\n+    });\n+    it(\"should support null strings\", function (): void {\n+        verifyScenario(null);\n+    });\n+});\n+\n+function verifyScenario(input: string): void {\n+    try {\n+        Logger.log(input);\n+        Logger.logError(input);\n+        Logger.logWarning(input);\n+        should(true).be.ok;","path":"src/taco-utils/test/logger.ts","position":46,"original_position":46,"commit_id":"983f0642158f99bf41fa9cc89309e620fade4875","original_commit_id":"983f0642158f99bf41fa9cc89309e620fade4875","user":{"login":"guillaumejenkins","id":14299377,"avatar_url":"https://avatars.githubusercontent.com/u/14299377?v=3","gravatar_id":"","url":"https://api.github.com/users/guillaumejenkins","html_url":"https://github.com/guillaumejenkins","followers_url":"https://api.github.com/users/guillaumejenkins/followers","following_url":"https://api.github.com/users/guillaumejenkins/following{/other_user}","gists_url":"https://api.github.com/users/guillaumejenkins/gists{/gist_id}","starred_url":"https://api.github.com/users/guillaumejenkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guillaumejenkins/subscriptions","organizations_url":"https://api.github.com/users/guillaumejenkins/orgs","repos_url":"https://api.github.com/users/guillaumejenkins/repos","events_url":"https://api.github.com/users/guillaumejenkins/events{/privacy}","received_events_url":"https://api.github.com/users/guillaumejenkins/received_events","type":"User","site_admin":false},"body":"I think should.js has a way of saying shouldNotThrow({...code here})","created_at":"2016-01-14T20:13:50Z","updated_at":"2016-01-14T20:13:50Z","html_url":"https://github.com/Microsoft/TACO/pull/247#discussion_r49778937","pull_request_url":"https://api.github.com/repos/Microsoft/TACO/pulls/247","_links":{"self":{"href":"https://api.github.com/repos/Microsoft/TACO/pulls/comments/49778937"},"html":{"href":"https://github.com/Microsoft/TACO/pull/247#discussion_r49778937"},"pull_request":{"href":"https://api.github.com/repos/Microsoft/TACO/pulls/247"}}},"pull_request":{"url":"https://api.github.com/repos/Microsoft/TACO/pulls/247","id":56074472,"html_url":"https://github.com/Microsoft/TACO/pull/247","diff_url":"https://github.com/Microsoft/TACO/pull/247.diff","patch_url":"https://github.com/Microsoft/TACO/pull/247.patch","issue_url":"https://api.github.com/repos/Microsoft/TACO/issues/247","number":247,"state":"open","locked":false,"title":"Fixing logger.logXXX to handle undefined argument","user":{"login":"nisheetjain","id":12930977,"avatar_url":"https://avatars.githubusercontent.com/u/12930977?v=3","gravatar_id":"","url":"https://api.github.com/users/nisheetjain","html_url":"https://github.com/nisheetjain","followers_url":"https://api.github.com/users/nisheetjain/followers","following_url":"https://api.github.com/users/nisheetjain/following{/other_user}","gists_url":"https://api.github.com/users/nisheetjain/gists{/gist_id}","starred_url":"https://api.github.com/users/nisheetjain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nisheetjain/subscriptions","organizations_url":"https://api.github.com/users/nisheetjain/orgs","repos_url":"https://api.github.com/users/nisheetjain/repos","events_url":"https://api.github.com/users/nisheetjain/events{/privacy}","received_events_url":"https://api.github.com/users/nisheetjain/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-01-14T18:30:07Z","updated_at":"2016-01-14T20:13:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"010c3e6df472d88126fccca3c7f73613083def36","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Microsoft/TACO/pulls/247/commits","review_comments_url":"https://api.github.com/repos/Microsoft/TACO/pulls/247/comments","review_comment_url":"https://api.github.com/repos/Microsoft/TACO/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Microsoft/TACO/issues/247/comments","statuses_url":"https://api.github.com/repos/Microsoft/TACO/statuses/983f0642158f99bf41fa9cc89309e620fade4875","head":{"label":"Microsoft:fixLogger","ref":"fixLogger","sha":"983f0642158f99bf41fa9cc89309e620fade4875","user":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":41325355,"name":"TACO","full_name":"Microsoft/TACO","owner":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Microsoft/TACO","description":"Tools for Apache Cordova","fork":false,"url":"https://api.github.com/repos/Microsoft/TACO","forks_url":"https://api.github.com/repos/Microsoft/TACO/forks","keys_url":"https://api.github.com/repos/Microsoft/TACO/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/TACO/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/TACO/teams","hooks_url":"https://api.github.com/repos/Microsoft/TACO/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/TACO/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/TACO/events","assignees_url":"https://api.github.com/repos/Microsoft/TACO/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/TACO/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/TACO/tags","blobs_url":"https://api.github.com/repos/Microsoft/TACO/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/TACO/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/TACO/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/TACO/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/TACO/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/TACO/languages","stargazers_url":"https://api.github.com/repos/Microsoft/TACO/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/TACO/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/TACO/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/TACO/subscription","commits_url":"https://api.github.com/repos/Microsoft/TACO/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/TACO/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/TACO/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/TACO/issues/comments{/number}","contents_url":"https://api.github.com/repos/Microsoft/TACO/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/TACO/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/TACO/merges","archive_url":"https://api.github.com/repos/Microsoft/TACO/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/TACO/downloads","issues_url":"https://api.github.com/repos/Microsoft/TACO/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/TACO/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/TACO/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/TACO/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/TACO/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/TACO/releases{/id}","created_at":"2015-08-24T20:26:25Z","updated_at":"2016-01-13T18:54:56Z","pushed_at":"2016-01-14T18:43:43Z","git_url":"git://github.com/Microsoft/TACO.git","ssh_url":"git@github.com:Microsoft/TACO.git","clone_url":"https://github.com/Microsoft/TACO.git","svn_url":"https://github.com/Microsoft/TACO","homepage":null,"size":7068,"stargazers_count":130,"watchers_count":130,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":20,"mirror_url":null,"open_issues_count":9,"forks":20,"open_issues":9,"watchers":130,"default_branch":"master"}},"base":{"label":"Microsoft:master","ref":"master","sha":"17fc072c452e956220c7b993b43d813b803e3a9e","user":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":41325355,"name":"TACO","full_name":"Microsoft/TACO","owner":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Microsoft/TACO","description":"Tools for Apache Cordova","fork":false,"url":"https://api.github.com/repos/Microsoft/TACO","forks_url":"https://api.github.com/repos/Microsoft/TACO/forks","keys_url":"https://api.github.com/repos/Microsoft/TACO/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/TACO/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/TACO/teams","hooks_url":"https://api.github.com/repos/Microsoft/TACO/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/TACO/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/TACO/events","assignees_url":"https://api.github.com/repos/Microsoft/TACO/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/TACO/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/TACO/tags","blobs_url":"https://api.github.com/repos/Microsoft/TACO/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/TACO/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/TACO/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/TACO/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/TACO/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/TACO/languages","stargazers_url":"https://api.github.com/repos/Microsoft/TACO/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/TACO/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/TACO/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/TACO/subscription","commits_url":"https://api.github.com/repos/Microsoft/TACO/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/TACO/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/TACO/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/TACO/issues/comments{/number}","contents_url":"https://api.github.com/repos/Microsoft/TACO/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/TACO/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/TACO/merges","archive_url":"https://api.github.com/repos/Microsoft/TACO/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/TACO/downloads","issues_url":"https://api.github.com/repos/Microsoft/TACO/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/TACO/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/TACO/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/TACO/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/TACO/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/TACO/releases{/id}","created_at":"2015-08-24T20:26:25Z","updated_at":"2016-01-13T18:54:56Z","pushed_at":"2016-01-14T18:43:43Z","git_url":"git://github.com/Microsoft/TACO.git","ssh_url":"git@github.com:Microsoft/TACO.git","clone_url":"https://github.com/Microsoft/TACO.git","svn_url":"https://github.com/Microsoft/TACO","homepage":null,"size":7068,"stargazers_count":130,"watchers_count":130,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":20,"mirror_url":null,"open_issues_count":9,"forks":20,"open_issues":9,"watchers":130,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Microsoft/TACO/pulls/247"},"html":{"href":"https://github.com/Microsoft/TACO/pull/247"},"issue":{"href":"https://api.github.com/repos/Microsoft/TACO/issues/247"},"comments":{"href":"https://api.github.com/repos/Microsoft/TACO/issues/247/comments"},"review_comments":{"href":"https://api.github.com/repos/Microsoft/TACO/pulls/247/comments"},"review_comment":{"href":"https://api.github.com/repos/Microsoft/TACO/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Microsoft/TACO/pulls/247/commits"},"statuses":{"href":"https://api.github.com/repos/Microsoft/TACO/statuses/983f0642158f99bf41fa9cc89309e620fade4875"}}}}