From 9fb288f03768ba08d9b4890ea152c4d41a75a500 Mon Sep 17 00:00:00 2001 From: "James C. Davis" Date: Thu, 3 Mar 2022 13:22:03 -0500 Subject: [PATCH] add tests for hasNoAria and lacksAria --- lib/__tests__/has-aria.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/lib/__tests__/has-aria.ts b/lib/__tests__/has-aria.ts index c6e3d31b4..a126a5d63 100644 --- a/lib/__tests__/has-aria.ts +++ b/lib/__tests__/has-aria.ts @@ -15,6 +15,8 @@ describe('assert.dom(...).hasAria()', () => { test('smoke test', () => { assert.dom('button').hasAria('pressed', 'true'); assert.dom('button').doesNotHaveAria('hidden'); + assert.dom('button').hasNoAria('hidden'); + assert.dom('button').lacksAria('hidden'); expect(assert.results).toEqual([ { @@ -29,6 +31,18 @@ describe('assert.dom(...).hasAria()', () => { message: 'Element button does not have attribute "aria-hidden"', result: true, }, + { + actual: 'Element button does not have attribute "aria-hidden"', + expected: 'Element button does not have attribute "aria-hidden"', + message: 'Element button does not have attribute "aria-hidden"', + result: true, + }, + { + actual: 'Element button does not have attribute "aria-hidden"', + expected: 'Element button does not have attribute "aria-hidden"', + message: 'Element button does not have attribute "aria-hidden"', + result: true, + }, ]); }); });