Skip to content

Commit 9081210

Browse files
authored
Merge pull request #12 from github/ci
Setup GitHub CI
2 parents a13db08 + b22d7ff commit 9081210

File tree

2 files changed

+32
-4
lines changed

2 files changed

+32
-4
lines changed

.github/workflows/nodejs.yml

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

test/test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,23 +75,23 @@ describe('combobox-nav', function() {
7575
assert.equal(options[0].getAttribute('aria-selected'), 'true')
7676
assert.equal(input.getAttribute('aria-activedescendant'), 'baymax')
7777

78-
press(input, 'n', true)
78+
press(input, 'ArrowDown')
7979
assert.equal(options[2].getAttribute('aria-selected'), 'true')
8080
assert.equal(input.getAttribute('aria-activedescendant'), 'hubot')
8181

8282
press(input, 'Enter')
8383

84-
press(input, 'n', true)
84+
press(input, 'ArrowDown')
8585
assert.equal(options[3].getAttribute('aria-selected'), 'true')
8686
assert.equal(input.getAttribute('aria-activedescendant'), 'r2-d2')
8787

88-
press(input, 'n', true)
88+
press(input, 'ArrowDown')
8989
assert.equal(options[4].getAttribute('aria-selected'), 'true')
9090
assert.equal(input.getAttribute('aria-activedescendant'), 'wall-e')
9191
press(input, 'Enter')
9292
click(options[4])
9393

94-
press(input, 'p', true)
94+
press(input, 'ArrowUp')
9595
assert.equal(options[3].getAttribute('aria-selected'), 'true')
9696
assert.equal(input.getAttribute('aria-activedescendant'), 'r2-d2')
9797

0 commit comments

Comments
 (0)