You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/test/utils/index.ts

17 lines
455 B

import * as assert from 'assert';
import { trim_start, trim_end } from '../../src/compiler/utils/trim';
describe('utils', () => {
describe('trim', () => {
it('trim_start', () => {
const value = trim_start(' \r\n\t svelte content \r\n\t ');
assert.equal(value, 'svelte content \r\n\t ');
});
it('trim_end', () => {
const value = trim_end(' \r\n\t svelte content \r\n\t ');
assert.equal(value, ' \r\n\t svelte content');
});
});
});