Sha256: f8c71605e691b8ef756c190ffc846d0605967480c4a746f9d065f8ce44d0a146

Contents?: true

Size: 422 Bytes

Versions: 89

Compression:

Stored size: 422 Bytes

Contents

var makeDom = require("../utils").makeDom;
var traversal = require("../..");
var assert = require("assert");

describe("traversal", function() {
  describe("hasAttrib", function() {
    var hasAttrib = traversal.hasAttrib;

    it("doesn't throw on text nodes", function() {
      var dom = makeDom("textnode");
      assert.doesNotThrow(function() {
        hasAttrib(dom[0], "some-attrib");
      });
    });

  });
});

Version data entries

89 entries across 67 versions & 13 rubygems

Version Path
trusty-cms-6.3.1 node_modules/domutils/test/tests/traversal.js
optimacms-0.1.61 spec/dummy/node_modules/domutils/test/tests/traversal.js
disco_app-0.18.0 test/dummy/node_modules/domutils/test/tests/traversal.js
disco_app-0.18.2 test/dummy/node_modules/domutils/test/tests/traversal.js
trusty-cms-5.0.7 node_modules/domutils/test/tests/traversal.js
trusty-cms-5.0.6 node_modules/domutils/test/tests/traversal.js
trusty-cms-5.0.5 node_modules/domutils/test/tests/traversal.js
trusty-cms-5.0.4 node_modules/domutils/test/tests/traversal.js
disco_app-0.16.1 test/dummy/node_modules/domutils/test/tests/traversal.js
disco_app-0.15.2 test/dummy/node_modules/domutils/test/tests/traversal.js
trusty-cms-5.0.3 node_modules/domutils/test/tests/traversal.js
trusty-cms-5.0.2 node_modules/domutils/test/tests/traversal.js
disco_app-0.18.4 test/dummy/node_modules/domutils/test/tests/traversal.js
disco_app-0.18.1 test/dummy/node_modules/domutils/test/tests/traversal.js
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/domutils/test/tests/traversal.js
disco_app-0.14.0 test/dummy/node_modules/domutils/test/tests/traversal.js
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/domutils/test/tests/traversal.js
trusty-cms-5.0.1 node_modules/domutils/test/tests/traversal.js
trusty-cms-4.3.5 node_modules/domutils/test/tests/traversal.js
trusty-cms-5.0.0 node_modules/domutils/test/tests/traversal.js