Home / Function/ default.test() — svelte Function Reference

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
  df6a6f04_e808_b4a9_10a5_c3de7c649c1a["default.test()"]
  17858359_ee84_a643_aaa5_be1b8a4f99b4["_config.js"]
  df6a6f04_e808_b4a9_10a5_c3de7c649c1a -->|defined in| 17858359_ee84_a643_aaa5_be1b8a4f99b4
  07d76165_84db_aa3e_f8fc_c7c9c3a10163["test()"]
  df6a6f04_e808_b4a9_10a5_c3de7c649c1a -->|calls| 07d76165_84db_aa3e_f8fc_c7c9c3a10163
  b6b50867_b82d_6e21_1ea5_f22e93a7c3af["equal()"]
  df6a6f04_e808_b4a9_10a5_c3de7c649c1a -->|calls| b6b50867_b82d_6e21_1ea5_f22e93a7c3af
  style df6a6f04_e808_b4a9_10a5_c3de7c649c1a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/svelte/tests/runtime-browser/samples/binding-width-height-initialize/_config.js lines 4–9

	async test({ assert, component }) {
		// small timeout to allow the dimensions to be set
		await new Promise((r) => setTimeout(r, 100));
		assert.equal(component.toggle, true);
		assert.equal(component.offsetHeight, 800);
	}

Domain

Subdomains

Frequently Asked Questions

What does default.test() do?
default.test() is a function in the svelte codebase, defined in packages/svelte/tests/runtime-browser/samples/binding-width-height-initialize/_config.js.
Where is default.test() defined?
default.test() is defined in packages/svelte/tests/runtime-browser/samples/binding-width-height-initialize/_config.js at line 4.
What does default.test() call?
default.test() calls 2 function(s): equal, test.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free