From a80728f16f90616d93dcc9ed932528b35e2ef62d Mon Sep 17 00:00:00 2001
From: Catalin Mititiuc
Date: Fri, 24 May 2024 15:59:17 -0700
Subject: WIP: mock selenium response
---
src/index.js.test | 13 +++++++++++++
1 file changed, 13 insertions(+)
create mode 100644 src/index.js.test
(limited to 'src/index.js.test')
diff --git a/src/index.js.test b/src/index.js.test
new file mode 100644
index 0000000..f420f22
--- /dev/null
+++ b/src/index.js.test
@@ -0,0 +1,13 @@
+const svgns = 'http://www.w3.org/2000/svg';
+const [icon, use] = ['svg', 'use'].map(t => document.createElementNS(svgns, t));
+
+icon.setAttributeNS(null, 'viewBox', '-6 -6 12 12');
+icon.setAttribute('xmlns', svgns);
+icon.classList.add('weapon-icon');
+
+// use.setAttributeNS(null, 'href', `assets/images/counters.svg#rifle`);
+use.setAttributeNS(null, 'href', `assets/images/counters2.svg#smg`);
+
+icon.appendChild(use);
+
+document.querySelector('body').appendChild(icon);
--
cgit v1.2.3