badges.spec.js

16 lines | 363 B Blame History Raw Download
describe("badges test suite", function () {

  beforeEach(function () {
    globals.readFixture(globals.fixturePath + 'badges.html');
  });

  it('should contain a button with a badge span element', function () {
    var button = $('button');
    var span = $('button span.badge');

    expect(button).toExist();
    expect(span).toHaveClass('badge');
  });

});