I am trying to implement something in this case where
expect(Object.keys(testObj)).not.toContain(value)
OR expect(testObj).toEqual(jasmine.objectContaining({
value: "1"
}))
Pretty much I am trying to check for the scenario when the obj does not have a key OR if it does have that key, that key equals to a certain value.
Aucun commentaire:
Enregistrer un commentaire