Skip to content

Commit 4a5aa50

Browse files
committed
fix: update test
1 parent fca3be7 commit 4a5aa50

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

test/MagicString.test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1807,7 +1807,8 @@ describe('MagicString', () => {
18071807
it('works with string replace and function replacer', () => {
18081808
const code = '1 2 1 2';
18091809
const s = new MagicString(code);
1810-
let index = -1, _str = '';
1810+
let index = -1;
1811+
let _str = '';
18111812

18121813
s.replace('2', (match, i, str) => {
18131814
index = i;

0 commit comments

Comments
 (0)