Skip to content
Snippets Groups Projects
Commit 80f82a67 authored by Markus Kaarto's avatar Markus Kaarto
Browse files

some cleanup

parent 78119237
No related branches found
No related tags found
No related merge requests found
......@@ -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
......@@ -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"
},
......
......@@ -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
......
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'
);
});
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment