Assert that an element does not have any of the given attributes.
var element = createElement(`<buttonclass="primary"data-test-id="pay">Click me!</button>`);expect(element, 'not to have attribute', 'disabled');expect(element, 'not to have attributes', 'id', 'disabled');expect(element, 'not to have attributes', ['id', 'disabled']);
In case of a failing expectation you get the following output:
expect(element, 'not to have attribute', 'class');
expected <button class="primary" data-test-id="pay">Click me!</button>not to have attribute 'class'<buttonclass="primary"//should be removeddata-test-id="pay">Click me!</button>