test: adopt typed GSDToolsError constructors across failure tests
This commit is contained in:
@@ -14,7 +14,7 @@ describe('QueryNativeDirectAdapter', () => {
|
||||
});
|
||||
|
||||
await expect(adapter.dispatchJson('state', ['load'], 'state.load', [])).rejects.toMatchObject({
|
||||
classification: { kind: 'failure' },
|
||||
classification: GSDToolsError.failure('x', 'state', ['load'], 1).classification,
|
||||
command: 'state',
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user