Skip to content

Commit

Permalink
Add sinon module for use in unit test spying
Browse files Browse the repository at this point in the history
  • Loading branch information
ianguerin committed Mar 5, 2024
1 parent e0f373b commit d784dba
Show file tree
Hide file tree
Showing 3 changed files with 232 additions and 5 deletions.
231 changes: 228 additions & 3 deletions package-lock.json

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

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@
"@actions/core": "^1.9.1",
"cheerio": "^1.0.0-rc.11",
"express": "^4.17.1",
"puppeteer": "^14.1.1"
"puppeteer": "^14.1.1",
"sinon": "^17.0.1"
},
"devDependencies": {
"@jsdoc/salty": "^0.2.3",
"@jsdoc/util": "^0.2.4",
"code-prettify": "^0.1.0",
"common-path-prefix": "^3.0.0",
"jsdoc": "^4.0.0",
"@jsdoc/salty": "^0.2.3",
"open-sans-fonts": "^1.6.2"
},
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions test/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ <h1 id="test-header"></h1>
<div id="mocha"></div>
<script type="text/javascript" src="https://unpkg.com/[email protected]/chai.js"></script>
<script type="text/javascript" src="https://unpkg.com/[email protected]/mocha.js"></script>
<script type="text/javascript" src="../node_modules/sinon/pkg/sinon.js"></script>
<script type="text/javascript">
var MetacatUI = {
AppConfig: {
Expand Down

0 comments on commit d784dba

Please sign in to comment.