Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
ui-middleware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Open Source Software
OX App Suite
Core
ui-middleware
Commits
1250a031
Commit
1250a031
authored
3 years ago
by
julian.baeume
Browse files
Options
Downloads
Patches
Plain Diff
enable skipped test
needed a little adjustment, but seems to work fine, now.
parent
a25c2e13
Loading
Loading
Loading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
spec/server_test.js
+10
-5
10 additions, 5 deletions
spec/server_test.js
with
10 additions
and
5 deletions
spec/server_test.js
+
10
−
5
View file @
1250a031
...
...
@@ -86,26 +86,31 @@ describe('Manifest service', () => {
expect
(
response2
.
body
).
toEqual
([{
namespace
:
'
other
'
,
path
:
'
example
'
}])
})
it
.
skip
(
'
can load multiple configurations
'
,
async
()
=>
{
it
(
'
can load multiple configurations
'
,
async
()
=>
{
mockfs
({
'
./config/manifests
'
:
{
'
urls.yaml
'
:
`manifests:
- http
s
://
some-fake-url.k3s.de
/api/manifest.json
- http
s
://
some-other-fake-url.k3s.de/api
/manifest.json`
- http://
localhost:
${
port
}
/api/manifest.json
- http://
localhost:
${
port
}
/api/no2
/manifest.json`
}
})
mockserver
.
close
()
mockserver
=
await
createMockServer
({
port
})
mockserver
.
respondWith
({
'
/api/manifest.json
'
:
{
some
:
'
other
'
}
})
mockserver
.
respondWith
({
'
/api/manifest.json
'
:
generateSimpleViteManifest
({
'
example1.js
'
:
'
other
'
})
})
mockserver
.
respondWith
({
'
/api/no2/manifest.json
'
:
generateSimpleViteManifest
({
'
example2.js
'
:
'
thing
'
})
})
process
.
env
.
CACHE_TTL
=
1
const
app
=
createApp
()
await
request
(
app
)
.
get
(
'
/api/manifest.json
'
)
.
then
(
response
=>
{
expect
(
response
.
statusCode
).
toBe
(
200
)
expect
(
response
.
body
).
toEqual
([{
some
:
'
thing"}
'
},
{
some
:
'
other"}
'
}])
expect
(
response
.
body
).
toEqual
([
{
namespace
:
'
other
'
,
path
:
'
example1
'
},
{
namespace
:
'
thing
'
,
path
:
'
example2
'
}
])
})
})
})
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment