Closed liron-navon closed 5 years ago
Made a PR for this: https://github.com/ionic-team/stencil-component-starter/pull/66
Thank you for the PR. Part of the refactoring that led to this was designed to make the stater model an overall better pattern where "business logic" is moved out of the components and into plain old Typescript classes, keeping the components light-weight. Think "pipes" and "services" from the Angular world. This one would be more like a "pipe".
The format()
tests should have been moved to a util.spec.ts
file at the time format()
was moved to the util.ts
file. Commented as such on the PR.
Moved the existing unit tests to util.spec.ts
via this commit: https://github.com/ionic-team/stencil-component-starter/commit/e65f5071df4658b725eddffb540b9ab7bf652803
Made a PR for this: https://github.com/ionic-team/stencil-component-starter/pull/66
Stencil version:
I'm submitting a:
[ X] bug report [ ] feature request [ ] support request
Current behavior: Default tests fails with the starter app.
Expected behavior: Default tests should pass.
Steps to reproduce: In the terminal run:
Related code: The default code for the default component spec:
Other information:
I guess the "format" function was changed to "getText", but was not changed in the tests?
The error logs: