Skip to content

Commit c662634

Browse files
sttkphated
sttk
authored andcommitted
Update: Surface branch flag by including it in tree
1 parent c8b61a1 commit c662634

File tree

5 files changed

+10
-0
lines changed

5 files changed

+10
-0
lines changed

lib/parallel.js

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ function parallel() {
2222
tree: {
2323
label: fn.displayName,
2424
type: 'function',
25+
branch: true,
2526
nodes: buildTree(args),
2627
},
2728
});

lib/series.js

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ function series() {
2222
tree: {
2323
label: fn.displayName,
2424
type: 'function',
25+
branch: true,
2526
nodes: buildTree(args),
2627
},
2728
});

test/fixtures/taskTree/aliasNested.js

+2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ module.exports = {
3030
{
3131
label: '<series>',
3232
type: 'function',
33+
branch: true,
3334
nodes: [
3435
{
3536
label: 'noop',
@@ -67,6 +68,7 @@ module.exports = {
6768
{
6869
label: '<parallel>',
6970
type: 'function',
71+
branch: true,
7072
nodes: [
7173
{
7274
label: 'noop',

test/fixtures/taskTree/doubleLevel.js

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ module.exports = {
2020
{
2121
label: '<series>',
2222
type: 'function',
23+
branch: true,
2324
nodes: [
2425
{
2526
label: 'fn1',

test/fixtures/taskTree/tripleLevel.js

+5
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ module.exports = {
1010
{
1111
label: '<parallel>',
1212
type: 'function',
13+
branch: true,
1314
nodes: [
1415
{
1516
label: '<anonymous>',
@@ -32,6 +33,7 @@ module.exports = {
3233
{
3334
label: '<parallel>',
3435
type: 'function',
36+
branch: true,
3537
nodes: [
3638
{
3739
label: '<anonymous>',
@@ -54,6 +56,7 @@ module.exports = {
5456
{
5557
label: '<series>',
5658
type: 'function',
59+
branch: true,
5760
nodes: [
5861
{
5962
label: 'fn1',
@@ -62,6 +65,7 @@ module.exports = {
6265
{
6366
label: '<parallel>',
6467
type: 'function',
68+
branch: true,
6569
nodes: [
6670
{
6771
label: '<anonymous>',
@@ -84,6 +88,7 @@ module.exports = {
8488
{
8589
label: '<parallel>',
8690
type: 'function',
91+
branch: true,
8792
nodes: [
8893
{
8994
label: '<anonymous>',

0 commit comments

Comments
 (0)