Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F996005
collection-response.test.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
752 B
Referenced Files
None
Subscribers
None
collection-response.test.ts
View Options
import
assert
from
"assert"
;
import
{
withRunningApp
}
from
"../../test_utils/with-test-app.js"
;
describe
(
"request multiple ids"
,
()
=>
{
it
(
"returns proper length and empty status for empty response"
,
async
()
=>
withRunningApp
(
async
({
app
,
rest_api
})
=>
{
const
response
=
new
app
.
Sealious
.
Responses
.
CollectionResponse
({
items
:
[],
});
assert
.
equal
(
response
.
length
,
0
);
assert
.
equal
(
response
.
empty
,
true
);
}));
it
(
"returns proper length and empty status for nonempty response"
,
async
()
=>
withRunningApp
(
async
({
app
,
rest_api
})
=>
{
const
response
=
new
app
.
Sealious
.
Responses
.
CollectionResponse
({
items
:
[{},
{}],
});
assert
.
equal
(
response
.
length
,
2
);
assert
.
equal
(
response
.
empty
,
false
);
}));
});
File Metadata
Details
Attached
Mime Type
text/x-java
Expires
Tue, Dec 24, 06:26 (1 d, 2 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
557031
Default Alt Text
collection-response.test.ts (752 B)
Attached To
Mode
rS Sealious
Attached
Detach File
Event Timeline
Log In to Comment