Skip to content

Commit

Permalink
chore: ++
Browse files Browse the repository at this point in the history
  • Loading branch information
kungege committed Nov 28, 2024
1 parent 6e753b7 commit f59c020
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ jobs:
node-version: [18, 20]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install pnpm
run: corepack enable

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

Expand Down
5 changes: 3 additions & 2 deletions src/rate/tests/Rate.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,9 @@ describe('n-rate', () => {

await wrapper.setProps({ onUpdateValue })
await wrapper.findAll('.n-rate__half')[testNumber].trigger('click')
expect(onUpdateValue).toHaveBeenCalledWith(testNumber + 0.5)

vi.waitFor(() => {
expect(onUpdateValue).toHaveBeenCalledWith(testNumber + 0.5)
})
wrapper.unmount()
})

Expand Down

0 comments on commit f59c020

Please sign in to comment.