Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F9582811
field-type-description.test.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
618 B
Referenced Files
None
Subscribers
None
field-type-description.test.js
View Options
"use strict"
;
const
locreq
=
require
(
"locreq"
)(
__dirname
);
const
assert
=
require
(
"assert"
);
const
FieldTypeDescription
=
locreq
(
"lib/data-structures/field-type-description.js"
);
describe
(
"Sealious.FieldTypeDescription"
,
function
()
{
it
(
"returns a FieldTypeDescription object"
,
function
()
{
const
ftd
=
new
FieldTypeDescription
(
"a"
,
"b"
,
"c"
);
assert
.
strictEqual
(
ftd
.
summary
,
"a"
);
assert
.
strictEqual
(
ftd
.
raw_params
,
"b"
);
assert
.
strictEqual
(
ftd
.
extra_info
,
"c"
);
const
ftd2
=
new
FieldTypeDescription
(
"a"
,
"b"
);
assert
.
deepEqual
(
ftd2
.
extra_info
,
{});
});
});
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Oct 11, 07:49 (1 d, 13 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
984001
Default Alt Text
field-type-description.test.js (618 B)
Attached To
Mode
rS Sealious
Attached
Detach File
Event Timeline
Log In to Comment