ui: Linting & Formatting scripts (#26819)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { describe, expect, it } from 'vitest';
|
||||
import { tryParseToolResultObject } from '$lib/utils';
|
||||
import { describe, expect, it } from 'vitest';
|
||||
|
||||
describe('tryParseToolResultObject', () => {
|
||||
it('returns null when no result is provided', () => {
|
||||
@@ -9,8 +9,8 @@ describe('tryParseToolResultObject', () => {
|
||||
|
||||
it('returns the parsed object when the result is JSON', () => {
|
||||
expect(tryParseToolResultObject('{"result":"ok","bytes":42}')).toEqual({
|
||||
result: 'ok',
|
||||
bytes: 42
|
||||
bytes: 42,
|
||||
result: 'ok'
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user