We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b867a9 commit 5a0185aCopy full SHA for 5a0185a
test/utils/index.ts
@@ -4,13 +4,13 @@ import { trim_start, trim_end } from '../../src/compiler/utils/trim';
4
describe('utils', () => {
5
describe('trim', () => {
6
it('trim_start', () => {
7
- const value = trim_start(' content');
8
- assert.equal(value, 'content');
+ const value = trim_start(' \r\n\t svelte content \r\n\t ');
+ assert.equal(value, 'svelte content \r\n\t ');
9
});
10
11
it('trim_end', () => {
12
- const value = trim_end('content ');
13
+ const value = trim_end(' \r\n\t svelte content \r\n\t ');
+ assert.equal(value, ' \r\n\t svelte content');
14
15
16
0 commit comments