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