This commit is contained in:
2024-05-17 18:02:49 +08:00
parent 8407d51fb6
commit b5264dc222
4056 changed files with 308094 additions and 41932 deletions

64
node_modules/tsml/test.js generated vendored Normal file
View File

@@ -0,0 +1,64 @@
const assert = require('assert')
, tsml = require('./')
assert.equal(
tsml`this is a string`
, 'this is a string'
)
assert.equal(
tsml`
this
is
a
string
`
, 'thisisastring'
)
assert.equal(
tsml`
this
is
a
string
`
, 'this is a string '
)
assert.equal(
tsml`
this ${1}
is
${2} a
string
${true}
${1 + 2}
`
, 'this 1 is 2 a string true 3'
)
assert.equal(
tsml`
this ${1}
is
${2} a
string
${true}
${1 + 2}
`
, 'this 1 is 2 a string true 3'
)