Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
lib-ical
Commits
f8f87af7
Commit
f8f87af7
authored
Feb 18, 2017
by
Mark Stenglein
Browse files
add moar tests for fold and generate
parent
3ffb8d87
Pipeline
#907
passed with stage
in 16 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
test/ContentLine.spec.ts
View file @
f8f87af7
...
...
@@ -64,7 +64,7 @@ describe("ContentLine", () => {
expect
(
result
).
to
.
be
.
equal
(
testValue
);
});
});
});
/** describe("constructor") */
/**
* Test `fold` static method
...
...
@@ -111,7 +111,20 @@ describe("ContentLine", () => {
const
result
:
string
=
ContentLine
.
fold
(
test
);
expect
(
result
).
to
.
be
.
equal
(
expected
);
})
});
});
/** describe("fold") */
describe
(
"
generate
"
,
()
=>
{
it
(
"
Should respond as non-static method
"
,
()
=>
{
expect
(
ContentLine
).
respondsTo
(
'
generate
'
);
});
it
(
"
Should generate properly formatted lines
"
,
()
=>
{
const
test
:
ContentLine
=
new
ContentLine
(
"
NAME
"
,
[
"
param1
"
,
"
param2
"
],
"
value
"
);
const
expected
=
"
NAME;param1;param2:value
"
const
result
=
test
.
generate
();
expect
(
result
).
to
.
be
.
equal
(
expected
);
});
});
});
/** describe("generate") */
});
/** describe("ContentLine") */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment