Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
design-system-lib
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
julkiset-sivut
design-system-lib
Commits
80f82a67
Commit
80f82a67
authored
5 years ago
by
Markus Kaarto
Browse files
Options
Downloads
Patches
Plain Diff
some cleanup
parent
78119237
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitlab-ci.yml
+1
-3
1 addition, 3 deletions
.gitlab-ci.yml
package.json
+1
-1
1 addition, 1 deletion
package.json
src/components/button/button.spec.ts
+1
-1
1 addition, 1 deletion
src/components/button/button.spec.ts
src/utils/utils.spec.ts
+0
-21
0 additions, 21 deletions
src/utils/utils.spec.ts
with
3 additions
and
26 deletions
.gitlab-ci.yml
+
1
−
3
View file @
80f82a67
...
...
@@ -6,9 +6,7 @@ cache:
-
node_modules/
-
.yarn
before_script
:
-
apt-get update -qq && apt-get install
build
:
script
:
-
yarn install && yarn test && yarn build
# after this, copy or deploy to chosen location
This diff is collapsed.
Click to expand it.
package.json
+
1
−
1
View file @
80f82a67
...
...
@@ -17,7 +17,7 @@
"scripts"
:
{
"build"
:
"stencil build --docs"
,
"start"
:
"stencil build --dev --watch --serve"
,
"test"
:
"stencil test --spec
--e2e
"
,
"test"
:
"stencil test --spec"
,
"test.watch"
:
"stencil test --spec --e2e --watchAll"
,
"generate"
:
"stencil generate"
},
...
...
This diff is collapsed.
Click to expand it.
src/components/button/button.spec.ts
+
1
−
1
View file @
80f82a67
...
...
@@ -26,7 +26,7 @@ it("should have classname matching the variant", async () => {
expect
(
button
).
toBeTruthy
();
});
it
(
"
should display arrow element
"
,
async
()
=>
{
it
(
"
should display
an
arrow element
"
,
async
()
=>
{
const
page
=
await
newSpecPage
({
components
:
[
Button
],
html
:
`<hy-button
...
...
This diff is collapsed.
Click to expand it.
src/utils/utils.spec.ts
deleted
100644 → 0
+
0
−
21
View file @
78119237
import
{
format
}
from
'
./utils
'
;
describe
(
'
format
'
,
()
=>
{
it
(
'
returns empty string for no names defined
'
,
()
=>
{
expect
(
format
(
undefined
,
undefined
,
undefined
)).
toEqual
(
''
);
});
it
(
'
formats just first names
'
,
()
=>
{
expect
(
format
(
'
Joseph
'
,
undefined
,
undefined
)).
toEqual
(
'
Joseph
'
);
});
it
(
'
formats first and last names
'
,
()
=>
{
expect
(
format
(
'
Joseph
'
,
undefined
,
'
Publique
'
)).
toEqual
(
'
Joseph Publique
'
);
});
it
(
'
formats first, middle and last names
'
,
()
=>
{
expect
(
format
(
'
Joseph
'
,
'
Quincy
'
,
'
Publique
'
)).
toEqual
(
'
Joseph Quincy Publique
'
);
});
});
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment