【发布时间】:2015-12-18 13:25:23
【问题描述】:
我需要测试从哈希中删除:
store = { 'a': 4 }
delete store['a']
expect(store['a']).toBeUndefined()
此测试在 chrome 上通过,但在 Firefox 中未通过。我明白了:
Expected null not to be defined.
如何避免这个错误?
【问题讨论】:
标签: javascript google-chrome firefox coffeescript jasmine