MCPcopy Create free account
hub / github.com/forwardemail/superagent / parse

Function parse

test/client/serialize.js:16–25  ·  view source on GitHub ↗
(string_, object)

Source from the content-addressed store, hash-verified

14}
15
16function parse(string_, object) {
17 const value = request.parseString(string_);
18 assert.deepEqual(
19 value,
20 object,
21 `"${string_}" to ${JSON.stringify(
22 object
23 )} parse failed. got: ${JSON.stringify(value)}`
24 );
25}
26
27describe('request.serializeObject()', () => {
28 it('should serialize', () => {

Callers 3

serialize.jsFile · 0.85
setMethodsFunction · 0.85
client.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected