Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F8929891
uuid.test.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
993 B
Referenced Files
None
Subscribers
None
uuid.test.ts
View Options
import
assert
from
"assert"
;
import
{
withRunningApp
}
from
"../../../test_utils/with-test-app.js"
;
import
{
App
,
Collection
,
FieldTypes
,
Policies
}
from
"../../../main.js"
;
describe
(
"boolean"
,
()
=>
{
it
(
"lets filter by literal false value"
,
()
=>
withRunningApp
(
(
TestApp
)
=>
class
extends
TestApp
{
collections
=
{
...
App
.
BaseCollections
,
items
:
new
(
class
extends
Collection
{
name
=
"boolseals"
;
fields
=
{
uuid
:
new
FieldTypes
.
Uuid
(),
};
defaultPolicy
=
new
Policies
.
Public
();
})(),
};
},
async
({
app
})
=>
{
const
item
=
await
app
.
collections
.
items
.
suCreate
({});
// this second item is important, as we're counting the amount
// of results in the end
await
app
.
collections
.
items
.
suCreate
({});
const
{
items
:
items
}
=
await
app
.
collections
.
items
.
suList
()
.
filter
({
uuid
:
item
.
get
(
"uuid"
)
as
string
})
.
fetch
();
assert
.
strictEqual
(
items
.
length
,
1
);
}
));
});
File Metadata
Details
Attached
Mime Type
text/x-java
Expires
Sun, Sep 21, 00:34 (1 d, 12 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
928164
Default Alt Text
uuid.test.ts (993 B)
Attached To
Mode
rS Sealious
Attached
Detach File
Event Timeline
Log In to Comment