Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F996141
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
749 B
Referenced Files
None
Subscribers
None
collection-response.test.ts
View Options
import
assert
from
"assert"
;
import
{
withRunningApp
}
from
"../../test_utils/with-test-app"
;
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, 11:41 (22 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
557084
Default Alt Text
collection-response.test.ts (749 B)
Attached To
Mode
rS Sealious
Attached
Detach File
Event Timeline
Log In to Comment