This will add the matchers from Atom for Jasmine 2.x or 3.x
npm install --save-dev jasmine2-atom-matchers
// in your jasmine helpers.js
require("jasmine2-atom-matchers")
Matches if expected is an instance of Class
Matches if expected.length === length
Matches if expected path exists
Matches if expected element has focus
Matches if expected element is not display: none;
Matches if normalized expected path === normalized path
Matches if $(element).hasClass(className)
Matches if $(element).is(":visible")
toBeHidden()
Matches if $(element).is(":hidden")
Matches if $(element).is(":selected")
Matches if $(element).is(":checked")
Matches if $(element).is(":empty")
Matches if $(element).is(":disabled")
Matches if $(element).length > 0
Matches if
Matches if $(element).attr("id") === id
Matches if $(element).html() === html
Matches if $(element).text() === text
Matches if $(element).val() === value
Matches if
Matches if $(element).is(selector)
Matches if $(element).find(element|selector).length > 0
Matches if $(element).on(eventName)
Matches if $(element).on(eventName, eventHandler)