QUnit, assert not OK?

后端 未结 5 1096
南方客
南方客 2021-01-20 04:26

Sorry if this is obvious, but is there a notOK or equivalent function in QUnit, if we want to assert that a method returns false?

I can\'t see a way to negate OK in

5条回答
  •  礼貌的吻别
    2021-01-20 05:04

    The better approach would be to use:

    notOk();
    

    as it will be more expressive than stating:

    ok(!);
    

提交回复
热议问题