Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
blendb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
23
Issues
23
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
C3SL
blendb
Commits
7e0a04f2
Commit
7e0a04f2
authored
Sep 06, 2019
by
Rafael Dias
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add log and update it's location
Signed-off-by:
rafaelcosc
<
rpd17@inf.ufpr.br
>
parent
b5a39e21
Pipeline
#21461
passed with stages
in 1 minute and 40 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
src/util/log.spec.ts
src/util/log.spec.ts
+8
-2
No files found.
src/
core
/log.spec.ts
→
src/
util
/log.spec.ts
View file @
7e0a04f2
...
...
@@ -19,7 +19,7 @@
*/
import
{
expect
}
from
"
chai
"
;
import
{
Log
}
from
"
.
./util
/log
"
;
import
{
Log
}
from
"
./log
"
;
describe
(
"
log class
"
,
()
=>
{
...
...
@@ -35,10 +35,16 @@ describe("log class", () => {
expect
(
logLevelEmpty
.
getLogLevel
()).
to
.
be
.
equals
(
"
error
"
);
});
it
(
"
should modifiy logFile to
./blendb.log
if empty file
"
,
()
=>
{
it
(
"
should modifiy logFile to
stderr
if empty file
"
,
()
=>
{
process
.
env
.
BLENDB_LOG_FILE
=
""
;
const
LogFileEmpty
=
new
Log
();
expect
(
LogFileEmpty
.
getLogFile
()).
to
.
be
.
equals
(
"
stderr
"
);
});
it
(
"
should modifiy logFile to stderr if file does not exist
"
,
()
=>
{
process
.
env
.
BLENDB_LOG_FILE
=
"
norepo/test/shalnotexist
"
;
const
LogFileEmpty
=
new
Log
();
expect
(
LogFileEmpty
.
getLogFile
()).
to
.
be
.
equals
(
"
stderr
"
);
});
});
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