Skip to content

Commit

Permalink
chore: update tests to use ES module chai version (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
web-padawan authored Aug 9, 2024
1 parent 5d219ee commit 155270e
Show file tree
Hide file tree
Showing 6 changed files with 81 additions and 18 deletions.
88 changes: 75 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,11 @@
],
"devDependencies": {
"@custom-elements-manifest/analyzer": "^0.8.4",
"@esm-bundle/chai": "^4.3.4",
"@open-wc/testing-helpers": "~2.3.0",
"@rollup/plugin-node-resolve": "^15.1.0",
"@rollup/plugin-terser": "^0.4.3",
"@size-limit/preset-small-lib": "^8.2.6",
"@types/chai": "^4.3.17",
"@types/sinon": "^10.0.15",
"@typescript-eslint/eslint-plugin": "^6.1.0",
"@typescript-eslint/parser": "^6.1.0",
Expand All @@ -100,6 +100,7 @@
"@web/test-runner": "^0.17.0",
"@web/test-runner-commands": "^0.8.0",
"@web/test-runner-visual-regression": "^0.8.2",
"chai": "^5.1.1",
"csso": "^5.0.5",
"eslint": "^8.45.0",
"eslint-config-prettier": "^8.8.0",
Expand Down
2 changes: 1 addition & 1 deletion src/test/a11y.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { expect } from '@esm-bundle/chai';
import { expect } from 'chai';
import { sendKeys } from '@web/test-runner-commands';
import { fixture, html } from '@open-wc/testing-helpers';
import type { RgbaColorPicker } from '../rgba-color-picker';
Expand Down
2 changes: 1 addition & 1 deletion src/test/color-picker.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { expect } from '@esm-bundle/chai';
import { expect } from 'chai';
import sinon from 'sinon';
import { fixture, html, nextFrame } from '@open-wc/testing-helpers';
import { hsvaToRgbString, rgbaToHsva } from '../lib/utils/convert';
Expand Down
2 changes: 1 addition & 1 deletion src/test/hex-input.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { expect } from '@esm-bundle/chai';
import { expect } from 'chai';
import { sendKeys } from '@web/test-runner-commands';
import sinon from 'sinon';
import { fixture, html, nextFrame } from '@open-wc/testing-helpers';
Expand Down
2 changes: 1 addition & 1 deletion src/test/utils.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { expect } from '@esm-bundle/chai';
import { expect } from 'chai';
import { clamp, round } from '../lib/utils/math.js';
import {
hexToRgba,
Expand Down

0 comments on commit 155270e

Please sign in to comment.