Skip to content

TypeError: comp.triggerPageLifeTime is not a function #81

@Joey-dev-58

Description

@Joey-dev-58

在组件中有以下代码:
pageLifetimes: {
hide() {
this.setData({ showDialog: false });
},
},
在unit test中使用 comp.triggerPageLifeTime('hide');运行test后,得到TypeError: comp.triggerPageLifesTime is not a function的报错,unit test未通过。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions