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

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

Analyze Your Own Codebase

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

Try Supermodel Free