testObjectOption() — vue Function Reference
Architecture documentation for the testObjectOption() function in test-object-option.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 4a7600ac_90db_8739_d900_439c1c18fef7["testObjectOption()"] 09b3d58b_2586_2d23_1760_3ec3fe090d46["test-object-option.ts"] 4a7600ac_90db_8739_d900_439c1c18fef7 -->|defined in| 09b3d58b_2586_2d23_1760_3ec3fe090d46 style 4a7600ac_90db_8739_d900_439c1c18fef7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
test/helpers/test-object-option.ts lines 3–17
export default function testObjectOption(name) {
it(`Options ${name}: should warn non object value`, () => {
const options = {}
options[name] = () => {}
new Vue(options)
expect(`Invalid value for option "${name}"`).toHaveBeenWarned()
})
it(`Options ${name}: should not warn valid object value`, () => {
const options = {}
options[name] = {}
new Vue(options)
expect(`Invalid value for option "${name}"`).not.toHaveBeenWarned()
})
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does testObjectOption() do?
testObjectOption() is a function in the vue codebase, defined in test/helpers/test-object-option.ts.
Where is testObjectOption() defined?
testObjectOption() is defined in test/helpers/test-object-option.ts at line 3.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free