HSLG Media

m56-native-http-client.test.cjs

m56-native-http-client.test.cjs

Source file: tests/contracts/m56-native-http-client.test.cjs

Module: tests-contracts

Size: 33 lines

SHA-256: d0721ff29936060606b15c53d57e7e3369735fe6cf676723eb1f21a27d412ee7

Responsibility

Checks service and UI contract invariants.

Declared entry points

  • test — source line 2.
  • path — source line 3.
  • src — source line 4.
  • vault — source line 5.
  • valid — source line 6.
  • fetchImpl — source line 14.
  • api — source line 15.
  • api — source line 22.
  • api — source line 30.

Imports and dependencies

  • Line 2: const test=require('node:test');const assert=require('node:assert/strict');
  • Line 3: const {pathToFileURL}=require('node:url');const path=require('node:path');

Behaviour and audit locations

  • Line 17: assert.equal(await saved.getToken(),valid);assert.equal(opts.credentials,'omit');

Relationship to the system

This page is the file-level source reference, not the architecture rationale. Read the module explanation, the corresponding architecture decision and user guide before changing behaviour. Names and line locations above are extracted from this exact source version; they are reference points, not proof that an external service or a phone feature works.

Change verification

Review the entry points and errors in this file, then run the module’s associated tests, source dependency gate, history gate and documentation coverage check. If the file changes an API response, user interaction, data model, deployment or third-party dependency, revise those human explanations and disaster recovery/licensing when relevant. Do not infer actual native or external API operation from source presence.