Skip to content

Commit 448735b

Browse files
committed
revert unnecessary changes
1 parent 6c949b0 commit 448735b

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

web_src/js/bootstrap.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import {showGlobalErrorMessage} from './bootstrap.ts';
2-
import {html} from './utils/html.ts';
32

43
test('showGlobalErrorMessage', () => {
5-
document.body.innerHTML = html`<div class="page-content"></div>`;
4+
document.body.innerHTML = '<div class="page-content"></div>';
65
showGlobalErrorMessage('test msg 1');
76
showGlobalErrorMessage('test msg 2');
87
showGlobalErrorMessage('test msg 1'); // duplicated

web_src/js/svg.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ test('svgParseOuterInner', () => {
1111
const {svgOuter, svgInnerHtml} = svgParseOuterInner('octicon-repo');
1212
expect(svgOuter.nodeName).toMatch('svg');
1313
expect(svgOuter.classList.contains('octicon-repo')).toBeTruthy();
14-
expect(svgInnerHtml).toContain('path ');
14+
expect(svgInnerHtml).toContain('<path');
1515
});
1616

1717
test('SvgIcon', () => {

web_src/js/utils.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import {
33
parseUrl, translateMonth, translateDay, blobToDataURI,
44
toAbsoluteUrl, encodeURLEncodedBase64, decodeURLEncodedBase64, isImageFile, isVideoFile, parseRepoOwnerPathInfo,
55
} from './utils.ts';
6-
import {html} from './utils/html.ts';
76

87
test('dirname', () => {
98
expect(dirname('/path/to/file.js')).toEqual('/path/to');
@@ -31,7 +30,7 @@ test('isObject', () => {
3130
});
3231

3332
test('stripTags', () => {
34-
expect(stripTags(html`<a>test</a>`)).toEqual('test');
33+
expect(stripTags('<a>test</a>')).toEqual('test');
3534
});
3635

3736
test('parseIssueHref', () => {

0 commit comments

Comments
 (0)