summaryrefslogtreecommitdiffstats
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.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/web_src/js/svg.test.js b/web_src/js/svg.test.js
index f1939c3a46..9f2836b667 100644
--- a/web_src/js/svg.test.js
+++ b/web_src/js/svg.test.js
@@ -1,7 +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"');
+ expect(svg('octicon-repo')).toMatch(/^<svg/);
+ expect(svg('octicon-repo', 16)).toContain('width="16"');
+ expect(svg('octicon-repo', 32)).toContain('width="32"');
});