Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F12661028
app.test.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
569 B
Referenced Files
None
Subscribers
None
app.test.ts
View Options
import
assert
from
"assert"
;
import
{
withRunningApp
}
from
"../../test_utils/with-test-app"
;
describe
(
"app"
,
()
=>
{
require
(
"../sort.subtest"
);
describe
(
"metadata"
,
()
=>
{
it
(
"is cleared when running .removeAllData()"
,
async
()
=>
{
return
withRunningApp
(
(
app
)
=>
app
,
async
({
app
})
=>
{
await
app
.
Metadata
.
set
(
"some"
,
"value"
);
assert
.
strictEqual
(
await
app
.
Metadata
.
get
(
"some"
),
"value"
);
await
app
.
removeAllData
();
assert
.
strictEqual
(
await
app
.
Metadata
.
get
(
"some"
),
undefined
);
}
);
});
});
});
File Metadata
Details
Attached
Mime Type
text/x-java
Expires
Fri, Nov 28, 15:43 (1 d, 18 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1036928
Default Alt Text
app.test.ts (569 B)
Attached To
Mode
rS Sealious
Attached
Detach File
Event Timeline
Log In to Comment