Skip to content

Commit 7c6df87

Browse files
committed
fix tests & run on github runners
1 parent ddf03fe commit 7c6df87

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

.github/workflows/tests.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Jest Tests
2+
on:
3+
push:
4+
branches:
5+
- 'master'
6+
pull_request:
7+
branches:
8+
- 'master'
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
node-version: [14.x, 16.x, 18.x]
15+
steps:
16+
- uses: actions/checkout@v3
17+
- name: Use Node.js
18+
uses: actions/setup-node@v3
19+
with:
20+
node-version: ${{ matrix['node-version'] }}
21+
- name: Test
22+
run: |
23+
npm install
24+
npm run test

tests/litepicker.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ test('Litepicker date range - setOptions', () => {
184184
startDate,
185185
endDate,
186186
inlineMode: true,
187+
onChangeMonth: () => {}
187188
});
188189

189190
expect(picker.getStartDate().toDateString() === startDate.toDateString()

0 commit comments

Comments
 (0)