Skip to content

Commit 7e0ff1f

Browse files
committed
test(comments): await the now-async zipEntryText
1 parent ce88cc9 commit 7e0ff1f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎test/e2e/comments.spec.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ test.describe('comments survive a save (real editor)', () => {
8383
expect(result.error).toBeUndefined();
8484
const bytes = new Uint8Array(Buffer.from(result.b64, 'base64'));
8585
expect(zipEntryNames(bytes)).toContain('word/comments.xml');
86-
expect(zipEntryText(bytes, 'word/comments.xml') || '').toContain('review note');
87-
expect(zipEntryText(bytes, 'word/comments.xml') || '').toContain('审阅意见');
86+
expect((await zipEntryText(bytes, 'word/comments.xml')) || '').toContain('review note');
87+
expect((await zipEntryText(bytes, 'word/comments.xml')) || '').toContain('审阅意见');
8888
});
8989

9090
test('xlsx: a cell comment added via the API is written to xl/comments1.xml', async ({ page }) => {
@@ -104,6 +104,6 @@ test.describe('comments survive a save (real editor)', () => {
104104
const names = zipEntryNames(bytes);
105105
const part = names.find((n) => /^xl\/comments\d*\.xml$/.test(n));
106106
expect(part, `comments part missing in ${names.join(',')}`).toBeTruthy();
107-
expect(zipEntryText(bytes, part!) || '').toContain('cell note');
107+
expect((await zipEntryText(bytes, part!)) || '').toContain('cell note');
108108
});
109109
});

0 commit comments

Comments
 (0)