Skip to content

Commit

Permalink
fix: return false for every entry is irrelevant (#206)
Browse files Browse the repository at this point in the history
* fix: return false for every entry is irrelevant

* Add a comment

ref: #206 (comment)
  • Loading branch information
yinm authored and johnjbarton committed May 4, 2018
1 parent 3b20480 commit d7523d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/adapter.spec.js
Expand Up @@ -465,7 +465,8 @@ describe('jasmine adapter', function () {
})

it('should return the all stack entries if every entry is irrelevant', function () {
spyOn(window, 'isExternalStackEntry').and.returnValue(true)
// Check the case where the filteredStack is empty
spyOn(window, 'isExternalStackEntry').and.returnValue(false)
expect(getRelevantStackFrom('a\nb\nc')).toEqual(['a', 'b', 'c'])
})

Expand Down

0 comments on commit d7523d0

Please sign in to comment.