Skip to content

Commit 4a62856

Browse files
committed
fix test
1 parent 5121867 commit 4a62856

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

addons/addon-serialize/src/SerializeAddon.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,18 +149,18 @@ describe('SerializeAddon', () => {
149149
});
150150

151151
it('serializes rows within a provided range', async () => {
152-
await writeP(terminal, 'prompt>hello\r\nworld');
152+
await writeP(terminal, 'bye hello\r\nworld');
153153
const output = serializeAddon.serializeAsHTML({
154154
range: {
155155
startLine: 0,
156156
endLine: 0,
157-
startCol: 7
157+
startCol: 4
158158
}
159159
});
160160
const rowMatches = output.match(/<div><span>.*?<\/span><\/div>/g) || [];
161161
assert.equal(rowMatches.length, 1, output);
162162
assert.ok(rowMatches[0]?.includes('hello'));
163-
assert.ok(!output.includes('prompt>'));
163+
assert.ok(!output.includes('bye'));
164164
assert.ok(!output.includes('world'));
165165
});
166166

0 commit comments

Comments
 (0)