Home / Function/ testObjectOption() — vue Function Reference

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
  830d85be_ea2f_f50c_75f1_dd6812fb608f["testObjectOption()"]
  4ef3cec1_7e9c_23bb_5e9b_f118e8ebdf99["test-object-option.ts"]
  830d85be_ea2f_f50c_75f1_dd6812fb608f -->|defined in| 4ef3cec1_7e9c_23bb_5e9b_f118e8ebdf99
  style 830d85be_ea2f_f50c_75f1_dd6812fb608f 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

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