Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
debomatic-webui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
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
debomatic-webui-admins
debomatic-webui
Commits
f0eec9d8
Commit
f0eec9d8
authored
Jul 20, 2014
by
Leo Iannacone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test on error
parent
937f1c92
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
debomatic-webui/test/tests.coffee
debomatic-webui/test/tests.coffee
+15
-2
No files found.
debomatic-webui/test/tests.coffee
View file @
f0eec9d8
...
...
@@ -45,8 +45,8 @@ class Helper
clean
:
(
distribution
,
debpack
,
file_extension
)
->
b_path
=
@
base
b_path
=
path
.
join
(
b_path
,
distribution
,
'pool'
)
if
distribution
?
b_path
=
path
.
join
(
@
base
,
debpack
)
if
debpack
?
b_path
=
path
.
join
(
@
base
,
debpack
)
+
'.'
+
file_extension
if
file_extension
?
b_path
=
path
.
join
(
b_path
,
debpack
)
if
debpack
?
b_path
+=
path
.
join
(
b_path
,
debpack
)
+
'.'
+
file_extension
if
file_extension
?
exec
(
"rm -r
#{
b_path
}
"
)
clean_all
:
()
->
...
...
@@ -198,6 +198,19 @@ describe 'client', ->
str
=
'{"status": "build", "package": "test_1.2.4", "distribution": "unstable"}'
helper
.
append_json
(
str
)
describe
'should get error on removing'
,
->
it
'package'
,
(
done
)
->
helper
.
make_file
(
'unstable'
,
'test_1.2.5'
,
'buildlog'
,
'test on error'
)
client
.
emit
(
events
.
client
.
file
,
helper
.
get_query
(
'unstable'
,
'test_1.2.5'
,
'buildlog'
))
client
.
once
events
.
error
,
(
data
)
->
data
.
indexOf
(
'buildlog'
).
should
.
be
.
ok
data
.
indexOf
(
'test_1.2.5'
).
should
.
be
.
ok
data
.
indexOf
(
'unstable'
).
should
.
be
.
ok
data
.
indexOf
(
'deleted'
).
should
.
be
.
ok
done
()
helper
.
clean
(
'unstable'
,
'test_1.2.5'
)
process
.
on
'exit'
,
()
->
client
.
disconnect
()
helper
.
clean_all
()
# if process.env.SERVER
...
...
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