Skip to content

Commit bdf3f47

Browse files
authored
Merge branch 'main' into add-custom-way-to-fetch-results
2 parents 413b4f6 + 106855d commit bdf3f47

File tree

4 files changed

+34
-23
lines changed

4 files changed

+34
-23
lines changed

.devcontainer/devcontainer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
2828
"remoteUser": "node",
2929
"features": {
30-
"git": "latest"
30+
"git": "latest",
31+
"github-cli": "latest"
3132
}
3233
}

.github/workflows/nodejs.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Node CI
22

3-
on: [push]
3+
on: [push, pull_request]
44
jobs:
55
build:
66
runs-on: ${{ matrix.os }}
@@ -11,14 +11,14 @@ jobs:
1111
os: [ubuntu-latest, macos-latest]
1212

1313
steps:
14-
- uses: actions/checkout@v2
15-
- name: Use Node.js 14.x
16-
uses: actions/setup-node@v1
17-
with:
18-
node-version: 14.x
19-
- name: npm install, build, and test
20-
run: |
21-
npm install
22-
npm test
23-
env:
24-
CI: true
14+
- uses: actions/checkout@v3
15+
- name: Use Node.js 16.x
16+
uses: actions/setup-node@v3
17+
with:
18+
node-version: 16.x
19+
- name: npm install, build, and test
20+
run: |
21+
npm install
22+
npm test
23+
env:
24+
CI: true

examples/index.html

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
<!doctype html>
1+
<!DOCTYPE html>
22
<html>
33
<head>
44
<title>Auto-complete examples</title>
5-
<meta charset="utf-8">
5+
<meta charset="utf-8" />
66
<style>
7-
auto-complete [aria-selected="true"],
8-
auto-complete [role="option"]:hover {
7+
auto-complete [aria-selected='true'],
8+
auto-complete [role='option']:hover {
99
background-color: lavender;
1010
}
11-
auto-complete [aria-disabled="true"] {
11+
auto-complete [aria-disabled='true'] {
1212
color: grey;
1313
}
1414
</style>
@@ -43,7 +43,7 @@
4343
<label id="robots-label" for="robot">Robots</label>
4444
<!-- To enable auto-select (select first on Enter), use data-autoselect="true" -->
4545
<auto-complete src="/demo" for="items-popup" aria-labelledby="robots-label" data-autoselect="true">
46-
<input name="robot" type="text" aria-labelledby="robots-label" autofocus>
46+
<input name="robot" type="text" aria-labelledby="robots-label" autofocus />
4747
<!-- if a clear button is passed in, recommended to be *before* UL elements to avoid conflicting with their blur logic -->
4848
<button id="robot-clear">x</button>
4949
<ul id="items-popup"></ul>
@@ -61,7 +61,7 @@
6161
<label id="robots-a-label" for="robot-a">Robots (using Input ID)</label>
6262
<!-- To enable auto-select (select first on Enter), use data-autoselect="true" -->
6363
<auto-complete src="/demo" for="items-a-popup" aria-labelledby="robots-a-label" data-autoselect="true">
64-
<input id="robot-a" name="robot-a" type="text" aria-labelledby="robots-a-label" autofocus>
64+
<input id="robot-a" name="robot-a" type="text" aria-labelledby="robots-a-label" autofocus />
6565
<!-- if a clear button is passed in, recommended to be *before* UL elements to avoid conflicting with their blur logic -->
6666
<button id="robot-a-clear">x</button>
6767
<ul id="items-a-popup"></ul>
@@ -77,8 +77,8 @@
7777
<!-- example without autoselect -->
7878
<form>
7979
<label id="robots-2-label" for="robot-2">Robots (without autoselect on enter)</label>
80-
<auto-complete src="/demo" for="items-2-popup" aria-labelledby="robots-2-label" >
81-
<input name="robot-2" type="text" aria-labelledby="robots-2-label" autofocus>
80+
<auto-complete src="/demo" for="items-2-popup" aria-labelledby="robots-2-label">
81+
<input name="robot-2" type="text" aria-labelledby="robots-2-label" autofocus />
8282
<ul id="items-2-popup"></ul>
8383
<div id="items-2-popup-feedback" class="sr-only"></div>
8484
</auto-complete>

karma.config.cjs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
/* eslint-disable filenames/match-regex */
2+
3+
// eslint-disable-next-line import/no-commonjs, no-undef, @typescript-eslint/no-var-requires
14
process.env.CHROME_BIN = require('chromium').path
25

36
function completer(request, response, next) {
@@ -15,6 +18,7 @@ function completer(request, response, next) {
1518
next()
1619
}
1720

21+
// eslint-disable-next-line import/no-commonjs, no-undef
1822
module.exports = function (config) {
1923
config.set({
2024
frameworks: ['mocha', 'chai'],
@@ -29,7 +33,13 @@ module.exports = function (config) {
2933
port: 9876,
3034
colors: true,
3135
logLevel: config.LOG_INFO,
32-
browsers: ['ChromeHeadless'],
36+
browsers: ['ChromeHeadlessNoSandbox'],
37+
customLaunchers: {
38+
ChromeHeadlessNoSandbox: {
39+
base: 'ChromeHeadless',
40+
flags: ['--no-sandbox']
41+
}
42+
},
3343
autoWatch: false,
3444
singleRun: true,
3545
concurrency: Infinity,

0 commit comments

Comments
 (0)