default.test() — svelte Function Reference
Architecture documentation for the default.test() function in _config.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD e9612590_d064_488a_8e3b_23d90d84a6da["default.test()"] 85f71205_7521_c0dd_aa90_24204e789272["_config.js"] e9612590_d064_488a_8e3b_23d90d84a6da -->|defined in| 85f71205_7521_c0dd_aa90_24204e789272 style e9612590_d064_488a_8e3b_23d90d84a6da fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/tests/runtime-runes/samples/async-head/_config.js lines 5–22
async test({ assert, window }) {
await tick();
const head = window.document.head;
// we don't care about the order, but we want to ensure that the
// elements didn't clobber each other
for (let n of ['1', '2', '3']) {
const a = head.querySelector(`meta[name="a-${n}"]`);
assert.equal(a?.getAttribute('content'), n);
const b1 = head.querySelector(`meta[name="b-${n}-1"]`);
assert.equal(b1?.getAttribute('content'), `${n}-1`);
const b2 = head.querySelector(`meta[name="b-${n}-2"]`);
assert.equal(b2?.getAttribute('content'), `${n}-2`);
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does default.test() do?
default.test() is a function in the svelte codebase, defined in packages/svelte/tests/runtime-runes/samples/async-head/_config.js.
Where is default.test() defined?
default.test() is defined in packages/svelte/tests/runtime-runes/samples/async-head/_config.js at line 5.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free