Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
lib-ical
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SRCT
lib-ical
Commits
f8f87af7
Commit
f8f87af7
authored
Feb 18, 2017
by
Mark Stenglein
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add moar tests for fold and generate
parent
3ffb8d87
Pipeline
#907
passed with stage
in 16 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
5 deletions
+18
-5
test/ContentLine.spec.ts
test/ContentLine.spec.ts
+18
-5
No files found.
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
...
...
@@ -107,11 +107,24 @@ describe("ContentLine", () => {
"
longer than 10, being 74 characters long to be quite
"
+
"
exact.
\r\n
This string is longer than 10, being 74
"
+
"
characters long to be quite exact.
"
;
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