Skip to content

Commit

Permalink
Update to Chai 5.1 and Typescript 5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
theodorejb committed Apr 19, 2024
1 parent 5a74fc1 commit 86980ce
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 10 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@
},
"devDependencies": {
"@types/chai": "^4.3.3",
"@types/mocha": "^9.1.1",
"chai": "^4.3.6",
"@types/mocha": "^10.0.6",
"chai": "^5.1.0",
"http-server": "^14.1.1",
"mocha": "^10.0.0",
"typescript": "^4.7.4"
"typescript": "^5.4.5"
}
}
2 changes: 1 addition & 1 deletion src/es-cookie.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {CookieAttributes} from './CookieAttributes';
import {CookieAttributes} from './CookieAttributes.js';

export {CookieAttributes};

Expand Down
8 changes: 7 additions & 1 deletion test/browser/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@
</head>
<body>
<div id="mocha"></div>
<script src="../../node_modules/chai/chai.js"></script>
<script type="importmap">
{
"imports": {
"chai": "../../node_modules/chai/chai.js"
}
}
</script>
<script src="../../node_modules/mocha/mocha.js"></script>
<script>mocha.setup('bdd')</script>
<script type="module" src="../tests.js"></script>
Expand Down
3 changes: 1 addition & 2 deletions test/tests.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import * as Cookies from '../src/es-cookie.js';

const assert = chai.assert;
import { assert } from 'chai';

let cleanup = function () {
// Remove the cookies created using es-cookie default attributes
Expand Down
7 changes: 4 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"compilerOptions": {
"module": "ES6",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"forceConsistentCasingInFileNames": true,
"noUnusedLocals": true,
"noImplicitAny": true,
"strictNullChecks": true,
"strict": true,
"declaration": true,
"lib": [
"es2015",
Expand Down

0 comments on commit 86980ce

Please sign in to comment.