server-host.test.js — astro Source File
Architecture documentation for server-host.test.js, a javascript file in the astro codebase. 3 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 442f23ca_7b63_eaee_b9bd_6b0c68cef6c4["server-host.test.js"] dc7cec12_1a24_8d02_345b_ccb6a34d702f["../dist/standalone.js"] 442f23ca_7b63_eaee_b9bd_6b0c68cef6c4 --> dc7cec12_1a24_8d02_345b_ccb6a34d702f e1e2fac7_5a95_7a88_cb1e_0a3b91c4e607["strict"] 442f23ca_7b63_eaee_b9bd_6b0c68cef6c4 --> e1e2fac7_5a95_7a88_cb1e_0a3b91c4e607 6b0635f9_51ea_77aa_767b_7857878e98a6["node:test"] 442f23ca_7b63_eaee_b9bd_6b0c68cef6c4 --> 6b0635f9_51ea_77aa_767b_7857878e98a6 style 442f23ca_7b63_eaee_b9bd_6b0c68cef6c4 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import * as assert from 'node:assert/strict';
import { describe, it } from 'node:test';
import { hostOptions } from '../dist/standalone.js';
describe('host', () => {
it('returns "0.0.0.0" when host is true', () => {
const options = { host: true };
assert.equal(hostOptions(options.host), '0.0.0.0');
});
it('returns "localhost" when host is false', () => {
const options = { host: false };
assert.equal(hostOptions(options.host), 'localhost');
});
it('returns the value of host when host is a string', () => {
const host = '1.1.1.1';
const options = { host };
assert.equal(hostOptions(options.host), host);
});
});
Domain
Dependencies
- ../dist/standalone.js
- node:test
- strict
Source
Frequently Asked Questions
What does server-host.test.js do?
server-host.test.js is a source file in the astro codebase, written in javascript. It belongs to the CoreAstro domain.
What does server-host.test.js depend on?
server-host.test.js imports 3 module(s): ../dist/standalone.js, node:test, strict.
Where is server-host.test.js in the architecture?
server-host.test.js is located at packages/integrations/node/test/server-host.test.js (domain: CoreAstro, directory: packages/integrations/node/test).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free