Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomasz Wiaderek authored and Tomasz Wiaderek committed Jan 16, 2024
1 parent f061629 commit 472ff24
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,7 @@ describe('TldrawWSService', () => {
try {
service.setupWSConnection(ws, 'TEST');
} catch (e) {
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
expect(e.message).toMatch('error');
}
await delay(10);
Expand Down Expand Up @@ -488,6 +489,7 @@ describe('TldrawWSService', () => {
try {
service.updateHandler(msg, socketMock, doc);
} catch (e) {
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
expect(e.message).toMatch('error');
}

Expand All @@ -504,6 +506,7 @@ describe('TldrawWSService', () => {
try {
service.updateHandler(msg, socketMock, doc);
} catch (e) {
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
expect(e.message).toMatch('error');
}

Expand Down Expand Up @@ -557,6 +560,7 @@ describe('TldrawWSService', () => {
service.setupWSConnection(ws, 'TEST');
ws.emit('message', msg);
} catch (e) {
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
expect(e.message).toMatch('error');
}

Expand Down Expand Up @@ -612,6 +616,7 @@ describe('TldrawWSService', () => {
try {
doc = service.getYDoc('test-redis-fail');
} catch (e) {
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
expect(e.message).toMatch('error');
}

Expand Down Expand Up @@ -643,6 +648,7 @@ describe('TldrawWSService', () => {
try {
doc = service.getYDoc('test-update-fail');
} catch (e) {
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
expect(e.message).toMatch('error');
}

Expand Down

0 comments on commit 472ff24

Please sign in to comment.