Skip to content

Commit

Permalink
Merge pull request #95 from ShellyDCMS/fix-lit-helper-example
Browse files Browse the repository at this point in the history
fix lit component helper example
  • Loading branch information
ShellyDCMS committed May 27, 2024
2 parents 540848e + 3a6b24b commit 5ea94f0
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/bump-version.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: Bump Version

on:
pull_request:
workflow_dispatch:

permissions:
Expand All @@ -17,3 +16,5 @@ jobs:
- uses: "phips28/gh-action-bump-version@master"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
skip-tag: "true"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ CypressHelper aims to provide a framework agnostic (angular, lit, react) API for
This means that the API will not focus on implementation, but on the actual action a user would take.
For example, a user doesn't mouseUp, he/she hovers.

## [HTML Documentation](https://shellydcms.github.io/cypress-test-utils)
## [Documentation](https://shellydcms.github.io/cypress-test-utils)

## Examples

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@shellygo/cypress-test-utils",
"description": "Cypress Test Automation Utilities",
"version": "2.1.4",
"version": "2.1.5",
"author": "Shelly Goldblit",
"private": false,
"license": "MIT",
Expand Down
12 changes: 6 additions & 6 deletions src/lit/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ export class CypressLitComponentHelper {
* @example
* ```ts
* litComponentHelper.when.mount<SpinnerElement>(
new SpinnerElement(),
html`<edf-spinner size="${this.props.size}" type="${this.props.type}" label="${this.props.label}"></edf-spinner>`
);
```
* new SpinnerElement(),
* html`<edf-spinner size="${this.props.size}" type="${this.props.type}" label="${this.props.label}"></edf-spinner>`
* );
* ```
* @template T - element type
* @param element
* @param template
* @param element
* @param template
*/
mount: <T extends LitElement>(element: T, template: TemplateResult) => {
const target = getContainerEl();
Expand Down

0 comments on commit 5ea94f0

Please sign in to comment.