Skip to content

Commit

Permalink
Merge pull request #60 from sttk/include_branch_flag_in_tree
Browse files Browse the repository at this point in the history
Surface branch flag by including it in tree
  • Loading branch information
phated committed Feb 26, 2016
2 parents e1fdcb9 + a62fd87 commit cea15a3
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/parallel.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ function parallel() {
tree: {
label: fn.displayName,
type: 'function',
branch: true,
nodes: buildTree(args),
},
});
Expand Down
1 change: 1 addition & 0 deletions lib/series.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ function series() {
tree: {
label: fn.displayName,
type: 'function',
branch: true,
nodes: buildTree(args),
},
});
Expand Down
2 changes: 2 additions & 0 deletions test/fixtures/taskTree/aliasNested.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ module.exports = {
{
label: '<series>',
type: 'function',
branch: true,
nodes: [
{
label: 'noop',
Expand Down Expand Up @@ -67,6 +68,7 @@ module.exports = {
{
label: '<parallel>',
type: 'function',
branch: true,
nodes: [
{
label: 'noop',
Expand Down
1 change: 1 addition & 0 deletions test/fixtures/taskTree/doubleLevel.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ module.exports = {
{
label: '<series>',
type: 'function',
branch: true,
nodes: [
{
label: 'fn1',
Expand Down
5 changes: 5 additions & 0 deletions test/fixtures/taskTree/tripleLevel.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ module.exports = {
{
label: '<parallel>',
type: 'function',
branch: true,
nodes: [
{
label: '<anonymous>',
Expand All @@ -32,6 +33,7 @@ module.exports = {
{
label: '<parallel>',
type: 'function',
branch: true,
nodes: [
{
label: '<anonymous>',
Expand All @@ -54,6 +56,7 @@ module.exports = {
{
label: '<series>',
type: 'function',
branch: true,
nodes: [
{
label: 'fn1',
Expand All @@ -62,6 +65,7 @@ module.exports = {
{
label: '<parallel>',
type: 'function',
branch: true,
nodes: [
{
label: '<anonymous>',
Expand All @@ -84,6 +88,7 @@ module.exports = {
{
label: '<parallel>',
type: 'function',
branch: true,
nodes: [
{
label: '<anonymous>',
Expand Down

0 comments on commit cea15a3

Please sign in to comment.