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
9f83e487
Commit
9f83e487
authored
Jul 19, 2014
by
Leo Iannacone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
done not-needed
parent
b420b70a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
14 deletions
+6
-14
debomatic-webui/test/tests.coffee
debomatic-webui/test/tests.coffee
+6
-14
No files found.
debomatic-webui/test/tests.coffee
View file @
9f83e487
...
...
@@ -83,12 +83,11 @@ client = null
describe
'client'
,
->
before
(
(
done
)
->
before
(
->
helper
.
make_distribution
(
'trusty'
)
helper
.
make_distribution
(
'unstable'
)
helper
.
append_json
(
""
)
client
=
io
.
connect
(
"http://
#{
config
.
host
}
:
#{
config
.
port
}
"
)
done
()
)
describe
'on connecting'
,
->
...
...
@@ -100,7 +99,7 @@ describe 'client', ->
client
.
on
events
.
broadcast
.
status_debomatic
,
(
data
)
->
data
.
running
.
should
.
be
.
false
it
'on getting distribution packages'
,
(
done
)
->
it
'on getting distribution packages'
,
->
helper
.
make_package
(
'unstable'
,
'test_1.2.3'
)
helper
.
make_package
(
'unstable'
,
'test_1.2.4'
)
client
.
emit
(
events
.
client
.
distribution_packages
,
helper
.
get_query
(
'unstable'
))
...
...
@@ -110,9 +109,8 @@ describe 'client', ->
for
p
in
data
.
distribution
.
packages
packages_name
.
push
(
p
.
orig_name
)
packages_name
.
should
.
be
.
eql
([
'test_1.2.3'
,
'test_1.2.4'
])
done
()
it
'on getting package list'
,
(
done
)
->
it
'on getting package list'
,
->
helper
.
make_file
(
'unstable'
,
'test_1.2.3'
,
'buildlog'
,
'test'
)
helper
.
make_file
(
'unstable'
,
'test_1.2.3'
,
'lintian'
,
'test'
)
client
.
emit
(
events
.
client
.
package_files_list
,
helper
.
get_query
(
'unstable'
,
'test_1.2.3'
))
...
...
@@ -123,10 +121,9 @@ describe 'client', ->
for
f
in
data
.
package
.
files
files_name
.
push
(
f
.
name
)
files_name
.
should
.
be
.
eql
([
'buildlog'
,
'lintian'
])
done
()
describe
'on getting file'
,
->
it
'full content'
,
(
done
)
->
it
'full content'
,
->
helper
.
make_file
(
'unstable'
,
'test_1.2.3'
,
'buildlog'
,
'this is a test'
)
client
.
emit
(
events
.
client
.
file
,
helper
.
get_query
(
'unstable'
,
'test_1.2.3'
,
'buildlog'
))
client
.
on
events
.
client
.
file
,
(
data
)
->
...
...
@@ -134,20 +131,15 @@ describe 'client', ->
data
.
package
.
orig_name
.
should
.
be
.
eql
(
'test_1.2.3'
)
data
.
file
.
name
.
should
.
be
.
eql
(
'buildlog'
)
data
.
file
.
content
.
should
.
be
.
eql
(
'this is a test
\n
'
)
done
()
it
'new content'
,
(
done
)
->
it
'new content'
,
->
client
.
on
events
.
client
.
file_newcontent
,
(
data
)
->
data
.
distribution
.
name
.
should
.
be
.
eql
(
'unstable'
)
data
.
package
.
orig_name
.
should
.
be
.
eql
(
'test_1.2.3'
)
data
.
file
.
name
.
should
.
be
.
eql
(
'buildlog'
)
data
.
file
.
new_content
.
should
.
be
.
eql
(
'this is an appending test
\n
'
)
done
()
helper
.
append_file
(
'unstable'
,
'test_1.2.3'
,
'buildlog'
,
'this is an appending test'
)
afterEach
((
done
)
->
done
()
)
helper
.
append_file
(
'unstable'
,
'test_1.2.3'
,
'buildlog'
,
'this is an appending test'
)
process
.
on
'exit'
,
()
->
client
.
disconnect
()
...
...
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