mirror of
https://github.com/dkershner6/post-api-call-action.git
synced 2024-12-27 19:33:55 +08:00
12 lines
327 B
TypeScript
12 lines
327 B
TypeScript
import { parseJsonSafely } from './parseJsonSafely';
|
|
|
|
it('Should parse example strings correctly', () => {
|
|
const testString = "{\"Authorization\": \"Bearer testsdtestdgsdsfgs\"}";
|
|
|
|
const result = parseJsonSafely(testString);
|
|
|
|
expect(result).toEqual({
|
|
Authorization: 'Bearer testsdtestdgsdsfgs',
|
|
});
|
|
});
|