MCPcopy Create free account
hub / github.com/BrasilAPI/BrasilAPI / nullOrString

Function nullOrString

tests/fundos-v1.test.js:5–16  ·  view source on GitHub ↗
(received)

Source from the content-addressed store, hash-verified

3
4expect.extend({
5 nullOrString(received) {
6 return {
7 pass:
8 typeof received === 'string' ||
9 received instanceof String ||
10 received === null,
11 message: () =>
12 `expected null or string, but received ${this.utils.printReceived(
13 received
14 )}`,
15 };
16 },
17});
18const validOutputSchema = expect.objectContaining({
19 tipo_fundo: expect.any(String),

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected