Skip to content

Commit

Permalink
typewritten-text | Fix typo in repeat-interval getter
Browse files Browse the repository at this point in the history
  • Loading branch information
Auroratide committed Feb 13, 2024
1 parent b4305ea commit 1272be1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/typewritten-text/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export class TypewrittenTextElement extends HTMLElement {
return this.phraseInterval
}

return this.#getNumAttribute("repeat-speed", 1000)
return this.#getNumAttribute("repeat-interval", 1000)
}
set repeatInterval(value: number) { this.setAttribute("repeat-interval", value.toString()) }

Expand Down
2 changes: 1 addition & 1 deletion components/typewritten-text/test/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ describe("typewritten-text", () => {
describe("repeat", () => {
it("repeats", async () => {
const container = await render(`
<typewritten-text repeat type-speed="5" erase-speed="5" repeat-interval="5">hi</typewritten-text>
<typewritten-text repeat type-speed="5" erase-speed="5" repeat-interval="10">hi</typewritten-text>
`)

await eventually(() => expect(visibleText(container)).to.equal("hi"))
Expand Down

0 comments on commit 1272be1

Please sign in to comment.