Skip to content

Commit 5a0185a

Browse files
committed
Update trim util tests
1 parent 4b867a9 commit 5a0185a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/utils/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ import { trim_start, trim_end } from '../../src/compiler/utils/trim';
44
describe('utils', () => {
55
describe('trim', () => {
66
it('trim_start', () => {
7-
const value = trim_start(' content');
8-
assert.equal(value, 'content');
7+
const value = trim_start(' \r\n\t svelte content \r\n\t ');
8+
assert.equal(value, 'svelte content \r\n\t ');
99
});
1010

1111
it('trim_end', () => {
12-
const value = trim_end('content ');
13-
assert.equal(value, 'content');
12+
const value = trim_end(' \r\n\t svelte content \r\n\t ');
13+
assert.equal(value, ' \r\n\t svelte content');
1414
});
1515
});
1616
});

0 commit comments

Comments
 (0)