Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F7860138
app.test.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
542 B
Referenced Files
None
Subscribers
None
app.test.ts
View Options
import
assert
from
"assert"
;
import
{
withRunningApp
}
from
"../../test_utils/with-test-app.js"
;
describe
(
"app"
,
()
=>
{
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
Wed, Aug 13, 17:16 (1 d, 15 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
868050
Default Alt Text
app.test.ts (542 B)
Attached To
Mode
rS Sealious
Attached
Detach File
Event Timeline
Log In to Comment