Skip to content

Commit

Permalink
fixed issue of failing test in case of no dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
luciferankon committed Apr 23, 2019
1 parent 541652c commit 948694c
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 61 deletions.
123 changes: 63 additions & 60 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/tracker.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ var getPostData = function (medium, cid) {
if (!pi) {
return "";
}
var labels = pi.dependencies.taiko && "taiko," + os.platform() || os.platform();
var labels = pi.dependencies && pi.dependencies.taiko && "taiko," + os.platform() || os.platform();
var gaID = process.env.use_test_ga.toLowerCase() === "true" ? gaTestTrackingID : gaTrackingID;
return qs.stringify({
aip: "1",
Expand Down

0 comments on commit 948694c

Please sign in to comment.