FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
codeql-action/src/logging.test.ts at default-setup-testing · github/codeql-action · GitHub
github
codeql-action
Repository navigation
Code
Issues
165
(165)
Pull requests
44
(44)
Actions
Security and quality
2
(2)
Insights
Expand file tree
Breadcrumbs
codeql-action
/
src
/
logging.test.ts
Copy path
More file actions
More file actions
Latest commit
History
History
History
17 lines (12 loc) · 503 Bytes
Breadcrumbs
codeql-action
/
src
/
logging.test.ts
Copy path
File metadata and controls
17 lines (12 loc) · 503 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import
test
from
"ava"
;
import
{
joinMessageStrings
}
from
"./logging"
;
import
{
setupTests
}
from
"./testing-utils"
;
setupTests
(
test
)
;
test
(
"joinMessageStrings"
,
async
(
t
)
=>
{
// For strings and errors, it is the identity function.
t
.
deepEqual
(
joinMessageStrings
(
"Hello"
)
,
"Hello"
)
;
const
error
=
new
Error
(
"Some error"
)
;
t
.
deepEqual
(
joinMessageStrings
(
error
)
,
error
)
;
// For arrays of strings, we get a join-ed string.
t
.
deepEqual
(
joinMessageStrings
(
[
"foo"
,
"bar"
]
)
,
"foo bar"
)
;
}
)
;
Back
|
FazBrowse Home
|
New Git URL