fix child.segment bug

This commit is contained in:
Rich Harris
2018-07-23 17:02:35 -04:00
parent b28cdff233
commit 8e3830b646
3 changed files with 9 additions and 6 deletions

View File

@@ -630,7 +630,8 @@ function run({ mode, basepath = '' }) {
.then(text => {
assert.deepEqual(text.split('\n').filter(Boolean), [
'y: bar 1',
'z: baz 1'
'z: baz 1',
'child segment: baz'
]);
return nightmare.click(`a`)
@@ -642,7 +643,8 @@ function run({ mode, basepath = '' }) {
.then(text => {
assert.deepEqual(text.split('\n').filter(Boolean), [
'y: bar 1',
'z: qux 2'
'z: qux 2',
'child segment: qux'
]);
});
});