aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/js/svg.test.js
diff options
context:
space:
mode:
Diffstat (limited to 'web_src/js/svg.test.js')
-rw-r--r--web_src/js/svg.test.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/web_src/js/svg.test.js b/web_src/js/svg.test.js
new file mode 100644
index 0000000000..f1939c3a46
--- /dev/null
+++ b/web_src/js/svg.test.js
@@ -0,0 +1,7 @@
+import {svg} from './svg.js';
+
+test('svg', () => {
+ expect(svg('octicon-repo')).toStartWith('<svg');
+ expect(svg('octicon-repo', 16)).toInclude('width="16"');
+ expect(svg('octicon-repo', 32)).toInclude('width="32"');
+});