projects
/
yaffs-website
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Security update to Drupal 8.4.6
[yaffs-website]
/
node_modules
/
tsml
/
test.js
1
const assert = require('assert')
2
, tsml = require('./')
3
4
5
assert.equal(
6
tsml`this is a string`
7
, 'this is a string'
8
)
9
10
11
assert.equal(
12
tsml`
13
14
this
15
is
16
a
17
string
18
19
`
20
, 'thisisastring'
21
22
)
23
24
25
assert.equal(
26
tsml`
27
28
this
29
is
30
a
31
string
32
33
`
34
, 'this is a string '
35
36
)
37
38
39
assert.equal(
40
tsml`
41
42
this ${1}
43
is
44
${2} a
45
string
46
${true}
47
${1 + 2}
48
`
49
, 'this 1 is 2 a string true 3'
50
)
51
52
53
assert.equal(
54
tsml`
55
56
this ${1}
57
is
58
${2} a
59
string
60
${true}
61
${1 + 2}
62
`
63
, 'this 1 is 2 a string true 3'
64
)