Skip to content

Commit

Permalink
Switch back to local versions of jQuery and QUnit for tests
Browse files Browse the repository at this point in the history
Now that we solved the import issue with the new jCanvas website.
  • Loading branch information
caleb531 committed Jun 5, 2024
1 parent 51934a3 commit 51cfeb1
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 7 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"glob": "^10.3.10",
"jquery": "^3.7.1",
"prettier": "^3.2.5",
"qunit": "^2.21.0",
"rollup": "^4.17.2",
"rollup-plugin-esbuild": "^6.1.1",
"tslib": "^2.6.2",
Expand Down
38 changes: 38 additions & 0 deletions pnpm-lock.yaml

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

10 changes: 3 additions & 7 deletions tests/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@
<html>
<head>
<meta charset="utf-8" />
<link
href="https://cdnjs.cloudflare.com/ajax/libs/qunit/2.21.0/qunit.css"
rel="stylesheet"
/>
<link href="/jcanvas/resources/images/favicon.ico" rel="shortcut icon" />
<link href="../node_modules/qunit/qunit/qunit.css" rel="stylesheet" />
<title>jCanvas Unit Tests</title>
</head>
<body>
Expand All @@ -22,8 +18,8 @@ <h1>jCanvas Unit Tests</h1>
<div id="qunit"></div>
<div id="qunit-fixture"></div>

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/qunit/2.21.0/qunit.min.js"></script>
<script src="../node_modules/jquery/dist/jquery.js"></script>
<script src="../node_modules/qunit/qunit/qunit.js"></script>
<script src="../dist/umd/jcanvas.min.js"></script>
<script src="tests/jcanvas-tests.js"></script>
</body>
Expand Down

0 comments on commit 51cfeb1

Please sign in to comment.