text: const assert = require('assert');
  const { exec } = require('../../../setup');
  
  describe('QuerySet #hasDataset', function() {
  
      beforeEach(async function() {
          await exec(_ => {
              document.body.innerHTML =
                  '<div id="div1" data-text="Test"></div>' +
                  '<div id="div2"></div>' +
                  '<div id="div3" data-text="Test"></div>' +
                  '<div id="div4"></div>';
          });
      });
  
      it('returns true if any node has a specified attribute', async function() {
          assert.strictEqual(
              await exec(_ =>
                  dom.queryMutable('div')
                      .hasDataset('text')
              ),
              true
          );
      });
  
      it('returns false if no nodes have a specified attribute', async function() {
          assert.strictEqual(
              await exec(_ =>
                  dom.queryMutable('div:not([data-text])')
                      .hasDataset('text')
              ),
              false
          );
      });
  
  });