Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "src/utils/case"

Index

Variables

Const debug

debug: Debugger = debugFactory('case')

Functions

assertDeepEqual

  • assertDeepEqual(lhs: any, rhs: any): void

assertSanHTMLEqual

  • assertSanHTMLEqual(expected: string, got: string): void

compareSanHTML

  • compareSanHTML(expected: string, got: string): undefined | "data not equal" | "html not equal"
  • San HTML 数据和 DOM 部分比较(不依赖 Object key 顺序)

    Parameters

    • expected: string
    • got: string

    Returns undefined | "data not equal" | "html not equal"

    相等时返回空(undefined),不相等时返回信息(比如 "data not equal")

deepEqual

  • deepEqual(lhs: any, rhs: any): boolean

isObject

  • isObject(val: any): boolean

parseSanHTML

  • parseSanHTML(str: string): {}[]

Generated using TypeDoc