Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Rich-Harris/magic-string
/ trim.test.ts
File
trim.test.ts
tests/MagicString/trim.test.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
{ assert, describe, it } from
'vitest'
2
import
{ IntegrityCheckingMagicString as MagicString } from
'../__utils/IntegrityCheckingMagicString.ts'
3
4
describe(
'magicString'
, () => {
Callers
nothing calls this directly
Calls
12
append
Method · 0.45
trimEnd
Method · 0.45
toString
Method · 0.45
prepend
Method · 0.45
trimStart
Method · 0.45
trim
Method · 0.45
overwrite
Method · 0.45
generateDecodedMap
Method · 0.45
slice
Method · 0.45
remove
Method · 0.45
appendRight
Method · 0.45
trimLines
Method · 0.45
Tested by
no test coverage detected