I use javascript SDK v4.29 to add features in layers which participate geometric network using featureLayer's applyEdits function. After the features added I found that the points which conected the line not replace the junctions.