summaryrefslogtreecommitdiff
path: root/together/node_modules/object-inspect/test/element.js
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2023-02-23 19:34:56 +0100
committerMinteck <contact@minteck.org>2023-02-23 19:34:56 +0100
commit3d1cd02f27518f1a04374c7c8320cd5d82ede6e9 (patch)
tree75be5fba4368472fb11c8015aee026b2b9a71888 /together/node_modules/object-inspect/test/element.js
parent8cc1f13c17fa2fb5a4410542d39e650e02945634 (diff)
downloadpluralconnect-3d1cd02f27518f1a04374c7c8320cd5d82ede6e9.tar.gz
pluralconnect-3d1cd02f27518f1a04374c7c8320cd5d82ede6e9.tar.bz2
pluralconnect-3d1cd02f27518f1a04374c7c8320cd5d82ede6e9.zip
Updated 40 files, added 37 files, deleted 1103 files and renamed 3905 files (automated)
Diffstat (limited to 'together/node_modules/object-inspect/test/element.js')
-rw-r--r--together/node_modules/object-inspect/test/element.js53
1 files changed, 0 insertions, 53 deletions
diff --git a/together/node_modules/object-inspect/test/element.js b/together/node_modules/object-inspect/test/element.js
deleted file mode 100644
index 47fa9e2..0000000
--- a/together/node_modules/object-inspect/test/element.js
+++ /dev/null
@@ -1,53 +0,0 @@
-var inspect = require('../');
-var test = require('tape');
-
-test('element', function (t) {
- t.plan(3);
- var elem = {
- nodeName: 'div',
- attributes: [{ name: 'class', value: 'row' }],
- getAttribute: function (key) { return key; },
- childNodes: []
- };
- var obj = [1, elem, 3];
- t.deepEqual(inspect(obj), '[ 1, <div class="row"></div>, 3 ]');
- t.deepEqual(inspect(obj, { quoteStyle: 'single' }), "[ 1, <div class='row'></div>, 3 ]");
- t.deepEqual(inspect(obj, { quoteStyle: 'double' }), '[ 1, <div class="row"></div>, 3 ]');
-});
-
-test('element no attr', function (t) {
- t.plan(1);
- var elem = {
- nodeName: 'div',
- getAttribute: function (key) { return key; },
- childNodes: []
- };
- var obj = [1, elem, 3];
- t.deepEqual(inspect(obj), '[ 1, <div></div>, 3 ]');
-});
-
-test('element with contents', function (t) {
- t.plan(1);
- var elem = {
- nodeName: 'div',
- getAttribute: function (key) { return key; },
- childNodes: [{ nodeName: 'b' }]
- };
- var obj = [1, elem, 3];
- t.deepEqual(inspect(obj), '[ 1, <div>...</div>, 3 ]');
-});
-
-test('element instance', function (t) {
- t.plan(1);
- var h = global.HTMLElement;
- global.HTMLElement = function (name, attr) {
- this.nodeName = name;
- this.attributes = attr;
- };
- global.HTMLElement.prototype.getAttribute = function () {};
-
- var elem = new global.HTMLElement('div', []);
- var obj = [1, elem, 3];
- t.deepEqual(inspect(obj), '[ 1, <div></div>, 3 ]');
- global.HTMLElement = h;
-});