Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
m4lab_tv1
User Account
Commits
1ed80da6
Commit
1ed80da6
authored
Aug 04, 2021
by
Rosanny Sihombing
Browse files
unit test in TypeScript
parent
664029f8
Changes
2
Hide whitespace changes
Inline
Side-by-side
__tests__/gitlab.unit.test.
j
s
→
__tests__/gitlab.unit.test.
t
s
View file @
1ed80da6
cons
t
gitlab
=
require
(
'
../functions/gitlab
'
)
impor
t
gitlab
from
'
../functions/gitlab
'
//const axios = require('axios')
//jest.mock('axios')
...
...
__tests__/method.unit.test.
j
s
→
__tests__/method.unit.test.
t
s
View file @
1ed80da6
cons
t
methods
=
require
(
'
../functions/methods
'
)
impor
t
methods
from
'
../functions/methods
'
describe
(
"
DB methohds test
"
,
()
=>
{
...
...
@@ -49,4 +49,4 @@ describe("DB methohds test", () => {
expect
(
user
).
toBeNull
()
})
})
})
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment